# In the Animation Blueprint, the Pawn obtained using the TryToGetPawnOwner node cannot be cast to a subclass of Character.

**URL:** <https://forums.unrealengine.com/t/in-the-animation-blueprint-the-pawn-obtained-using-the-trytogetpawnowner-node-cannot-be-cast-to-a-subclass-of-character/2022169>\
**Category:** Blueprint\
**Tags:** c-c, casting, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, cast-failed, cast-to, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, editor, cast, CPP, question, Blueprint\
**Created:** [September 15, 2024, 7:18pm UTC](https://forums.unrealengine.com/t/in-the-animation-blueprint-the-pawn-obtained-using-the-trytogetpawnowner-node-cannot-be-cast-to-a-subclass-of-character/2022169 "2024-09-15T19:18:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soldhum\_Soon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soldhum\_Soon](https://forums.unrealengine.com/u/Soldhum_Soon)\
**Post date:** [September 15, 2024, 7:18pm UTC](https://forums.unrealengine.com/t/in-the-animation-blueprint-the-pawn-obtained-using-the-trytogetpawnowner-node-cannot-be-cast-to-a-subclass-of-character/2022169/1 "2024-09-15T19:18:08Z")

</div>

UE5.4.1  
I have a CharacterStage that inherits from Character.  
In the Animation Blueprint, the Pawn obtained using TryToGetPawnOwner always fails when using Cast To CharacterStage.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/2/a828ca39e9de34b3dd9629cfade2b8f9ea98faf7.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/9/289359ce71d28d75af6eb62c18a12bf59cc92ef4.png)

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [September 15, 2024, 7:25pm UTC](https://forums.unrealengine.com/t/in-the-animation-blueprint-the-pawn-obtained-using-the-trytogetpawnowner-node-cannot-be-cast-to-a-subclass-of-character/2022169/2 "2024-09-15T19:25:25Z")

</div>

What happens when you plug in the player pawn instead of that into the object pin?
