Check the kind of the object