determines the type of object.