In Rack v2, configParam
returns the TParamQuantity
. In Rack v1, you can use
dynamic_cast<TParamQuantity*>(paramQuantities[PARAM])
Rack v2 also has SwitchQuantity
(Rack development blog) but in Rack v1 you have to write your own ParamQuantity
subclass.