Convert boolean values in models