Fix conversions for boolean values.