Replace booleans with integers