toData for all built-in types are implemented