How do I cast TSubobjectPtr to different class in hierarchy?

URPGAttributeComponent with this:

TSubobjectPtr<class URPGAttributeBase> AwsomeAttributeSubObject;

And I initialize it in the same component constructor.

I also have GameAttributeComponent which is subclass of URPGAttributeComponent.

Now I want to initialize my Subobject to be of class UGameAttributes.

How do I do it ?

I have found my answer here: