Coerce types of LHS and RHS expressions in on-clause conditions