Check a comparion's operand type for legality before