slider.getValue should return Boolean instead of String