How to cast to Blueprint class from C++?

I know this thread was a long time ago but i tried your answer and its giving me an error for TSubClassOf, in ue4 it says “error C2143: syntax error: missing ‘;’ before ‘>’” but i literally copied your answer and just changed the class name to mine. Thanks in advance :slight_smile: