allow bool in setValue abstract