Coerce numbers to booleans in predicates