/Engine/Source/Runtime/TypedElementRuntime/Public/Elements/Interfaces/TypedElementObjectInterface.h
Attempts to cast the given handle to another class, if it can also be casted to TargetClass. This is intended for use in cases where the calling code may only need an actor pointer, but also wants to be sure it's a specific type of actor.
the casted object if successful, otherwise nullptr.
template<class CastTo> CastTo * GetObjectAs ( const [FTypedElementHandle](API\Runtime\TypedElementFramework\Elements\Framework\FTypedElementHandle) & InElementHandle, [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< CastTo > TargetClass )