Add isType method for type checking