# Safely Casting An AActor\* to IMyInterface\* ?

**URL:** <https://forums.unrealengine.com/t/safely-casting-an-aactor-to-imyinterface/441484>\
**Category:** UI\
**Tags:** interface, casting, unreal-engine, CPP, question\
**Created:** [January 17, 2019, 1:37am UTC](https://forums.unrealengine.com/t/safely-casting-an-aactor-to-imyinterface/441484 "2019-01-17T01:37:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GarettHunter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/garetthunter/32/719749_2.png) [@GarettHunter](https://forums.unrealengine.com/u/GarettHunter)\
**Post date:** [January 17, 2019, 11:47pm UTC](https://forums.unrealengine.com/t/safely-casting-an-aactor-to-imyinterface/441484/3 "2019-01-17T23:47:42Z")

</div>

Thanks. I will give that a shot. I originally thought I could just cast to IMyInterface like this, but I was not sure. I did not realize that I needed the Execute\_ prefix though. Give me some time to test this out and if all goes well I will accept this answer.

---

_[View the full topic](https://forums.unrealengine.com/t/safely-casting-an-aactor-to-imyinterface/441484)._
