Extend attribute setting routines to support non-string types.