Add type() method
Primitive type -> types enumeration