How to pass a pointer to a node in AudioSourceGraph in order to access the custom parameters of the class inside the node later

Ok, I found in the forum a topic which is quite similar to my problem:
https://forum.juce.com/t/access-an-audioprocessorgraph-ptr/36330

So: there’s no way to access the variables of the class inside the node. The only way is to declare AudioParameters variables and then use the getProcessor() -> getParameters() method: is it correct?