convert some booleans to ints