Change boolean type to int