add basic type coercion for comparisons