I think the current solution is probably ok though considering you would have to either solve it with something like ofAbstractDatGuiSlider or probe the type later in order to set it
Also, I think the current way makes it fairly explicit for the user to know what type they are working with. For instance, passing in ofColor to a slider wouldn't work in the current setup (nor should it)