Implement InstanceOf operator