Added IsType method to entities