How get range of parameter from host?

I really need set non normalized value of parameter from host. But i don’t know how. I’m trying from example host someting like:

auto params = graph.getNodeForId(nodeID)->getProcessor()->getParameters();
int numParams = params.size();

for (int i = 0; i < numParams; i++)
    dynamic_cast <RangedAudioParameter*> (params[i])->getNormalisableRange();
    params[i]->setValue(dynamic_cast <RangedAudioParameter*> (params[i]) -> convertTo0to1(12000));

but it crashes both last lines.

I don’t think the parameters of hosted plugins support any of the range etc stuff. It seems you can only access the parameters as plain AudioProcessorParameters, which will use the normalized 0.0-1.0 range.

It seems like that. Thank you!