How can i implement C++ code in UObject derived class to acess bp classes cast in bp

I’ve created a class derived from UObject, and overridden the GetWorld() function to return the level outer world, in blueprint class, I want to get my pawn bp_class, but I can’t find a cast for the bp_pawn_class. How can I solve this?