updating operations to "cast" values before comparing
fixing new rules for "casting"