Correctly compare values to integer values