If you are talking about an unreal interface… ie one of these:
UINTERFACE(Blueprintable, meta = (CannotImplementInterfaceInBlueprint))
class UUGInterface : public UInterface
{
GENERATED_UINTERFACE_BODY()
};
class IUGInterface
{
GENERATED_IINTERFACE_BODY()
};
Then to convert a UObject to the interface you go:
IUGInterface* Interface = Cast<IUGInterface>(pointerToAnyUObject);
Then you can call any functions that are part of that interface.
Is this what you meant?