check object type