Compare obj type with all type_ids of hierarchy type