Add casting for boolean values