update boolean cast