# UE 5.7 State Tree - Base class cast required?

**URL:** <https://forums.unrealengine.com/t/ue-5-7-state-tree-base-class-cast-required/2726741>\
**Category:** AI\
**Tags:** unreal-engine, state-machines, Blueprint, question\
**Created:** [June 6, 2026, 1:26pm UTC](https://forums.unrealengine.com/t/ue-5-7-state-tree-base-class-cast-required/2726741 "2026-06-06T13:26:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrettyTrue](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/prettytrue/32/1104918_2.png) [@PrettyTrue](https://forums.unrealengine.com/u/PrettyTrue)\
**Post date:** [June 6, 2026, 1:26pm UTC](https://forums.unrealengine.com/t/ue-5-7-state-tree-base-class-cast-required/2726741/1 "2026-06-06T13:26:45Z")

</div>

Making a generalized task that uses the SendGameplayEventToActor node. To keep it abstract, all I need to pass is any actor. Simple enough, however, if I want to pass in a instances of a subclass while I make the State Tree Reference things don’t land as expected and I get an invalid object.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/6/f06156c0939aa4e18434eb049883c6d7f67c9c34.png)

The subclass is follows a common pattern:

`C++ AActor subclass -> blueprint abstract -> blueprint concrete`

If, however, I do a “meaningless” cast to the Actor class from my subclass, things execute as expected:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/f/0efc2c8a54c86e4d8c7ab8dc338f59a0ae18d5d8.png)

I’m curious is this is just a quirk of the engine code or if it’s expected behavior. No real pressure as this workaround is fine; Doesn’t have a realtime constraint. If I find time I may trace at the C++ level to find out why but hoping someone has already done that 😉

Cheers
