Supporting built-in types in data members of type object