Retrieves whether the instance belongs to a specified entity type.
true if the entity belongs to the specified type; otherwise, the method returns false.