Coerce types for values of where clause