add a few methods to check type of primitives