add boolean cast