Casting in Unreal Engine C++



UObject* MyObject;
ACharacter* MyCharacter = Cast<ACharacter>(MyObject);  // Casting to ACharacter type