# why am I getting a casting failed here. can someone tell me what i did wrong?

**URL:** <https://forums.unrealengine.com/t/why-am-i-getting-a-casting-failed-here-can-someone-tell-me-what-i-did-wrong/1910382>\
**Category:** UI\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [June 20, 2024, 3:04pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-a-casting-failed-here-can-someone-tell-me-what-i-did-wrong/1910382 "2024-06-20T15:04:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-a-casting-failed-here-can-someone-tell-me-what-i-did-wrong/1910382/2 "2024-06-20T15:36:25Z")

</div>

Duplicate thread:

> [@Can someone tell me why my widget component is failing to cast my widget?](https://forums.unrealengine.com/t/can-someone-tell-me-why-my-widget-component-is-failing-to-cast-my-widget/1910364):
>
> first picture is from my actor component, im successing in getting the function i made in my widget component. this is my widget component function. I dont know why but my code is failing to cast my widget and is not succeeding in casting the function from my widget

---

_[View the full topic](https://forums.unrealengine.com/t/why-am-i-getting-a-casting-failed-here-can-someone-tell-me-what-i-did-wrong/1910382)._
