change a variable from integer to boolean