warn if cast between incompatible primitive types