TSubclassOf upward cast

No, what I’m trying to do is pass it as a parameter.
I don’t want to access any of its variable or function.

The best way I can thought is to modify the declaration of function, while keeping the variable type.