Convert boolean results to int