# Why cast fails every time when i try to cast my Actor to Character Movement Component?

**URL:** <https://forums.unrealengine.com/t/why-cast-fails-every-time-when-i-try-to-cast-my-actor-to-character-movement-component/301651>\
**Category:** C++\
**Tags:** cast-failed, unreal-engine, UE4, question, Blueprint\
**Created:** [December 15, 2014, 11:30am UTC](https://forums.unrealengine.com/t/why-cast-fails-every-time-when-i-try-to-cast-my-actor-to-character-movement-component/301651 "2014-12-15T11:30:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alien\_r92\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alien\_r92\_1](https://forums.unrealengine.com/u/Alien_r92_1)\
**Post date:** [December 15, 2014, 11:30am UTC](https://forums.unrealengine.com/t/why-cast-fails-every-time-when-i-try-to-cast-my-actor-to-character-movement-component/301651/1 "2014-12-15T11:30:00Z")

</div>

![24070-cattura.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/2/db2e5ebbd89ca6e6371e66d8d50c36f5fd172ddb.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcadbc481](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcadbc481](https://forums.unrealengine.com/u/anonymous_user_dcadbc481)\
**Post date:** [December 15, 2014, 11:47am UTC](https://forums.unrealengine.com/t/why-cast-fails-every-time-when-i-try-to-cast-my-actor-to-character-movement-component/301651/2 "2014-12-15T11:47:44Z")

</div>

,

Cast fails cuz “yourActor” != ChareacterMovementComponent;

But you may cast it to “yourActor” and get from him all data that you need (as ChildComponents or Variables)

Best wishes,

---

<div class="post-metadata">

**Author:** ![Alien\_r92\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alien\_r92\_1](https://forums.unrealengine.com/u/Alien_r92_1)\
**Post date:** [December 15, 2014, 12:01pm UTC](https://forums.unrealengine.com/t/why-cast-fails-every-time-when-i-try-to-cast-my-actor-to-character-movement-component/301651/3 "2014-12-15T12:01:27Z")

</div>

i need the rotation rate, how can i get it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcadbc481](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcadbc481](https://forums.unrealengine.com/u/anonymous_user_dcadbc481)\
**Post date:** [December 15, 2014, 12:36pm UTC](https://forums.unrealengine.com/t/why-cast-fails-every-time-when-i-try-to-cast-my-actor-to-character-movement-component/301651/4 "2014-12-15T12:36:58Z")

</div>

> i need the rotation rate, how can i get it?

 ![24079-set_get_rotrate.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/4/804fdd9fdf39750b4e02345071ff1f7348db11ab.png)

Instead of character on example, you sould use “yourActor” from you want get(or set) RotRate.

Best wishes,
