Transform values returned by equals and equalsIgnoreCase to booleans