Add missing boolean cast