Cast AActor to UBlueprint is Possible?

Hi, I would like to know if it is possible to Cast an object of type AActor that is loaded in game level to UBluePrint?
I’m doing a process in which I would change the values of the Flags of the Blueprint variables from another blueprint and what I have is the reference of the object that is loaded in level …

AActor comes from UObject

and UBlueprintCore comes from UBlueprintCore which comes from UObject

I tried to make some choices but they didn’t work

`if (UBlueprint * BP = Cast (MyActor->GetClass()))

or

if (UBlueprint * BP = Cast (MyActor->GetOuter() → GetClass()))`

Gratitude…

Hello! Can you be more precise - what problem do you want to solve by this method?