No member named ParameterID in namespace juce

This is in juce 7.0.4. I am a Juce newbie.
Im trying to compile an example and i’m getting this error on:

/ Returns a typed pointer to a juce::AudioParameterXXX object from the APVTS.
template <typename T>

inline static void castParameter(juce::AudioProcessorValueTreeState& apvts, const juce::ParameterID::ParameterID& id, T& destination)

{

destination = **dynamic_cast**<T>(apvts.getParameter(**id**.getParamID()));

. jassert(destination); // parameter does not exist or wrong type

}

I can access other methods ok there though obviously that breaks the code

Thanks for your help