# Blueprint Parent Cast to Child Type

**URL:** <https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369>\
**Category:** Blueprint\
**Tags:** parent-class, unreal-engine, bug-report, question, Blueprint\
**Created:** [July 24, 2015, 8:52am UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369 "2015-07-24T08:52:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [July 24, 2015, 8:52am UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/1 "2015-07-24T08:52:20Z")

</div>

Im currently getting a warning on a Down Cast to a Child type from Parent class.

 ![51298-portal.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/8/108990a51eed633bce9f595d86af4be6362e8291.png)

Though Child class clearly inherits from Parent.

 ![51299-portalred.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/d/efd88bc5ff7cdbb5cc64099b14857650aa3feea1.png)

I can alter my logic to work around this easy enough but i wasnt sure if this is a Bug or im doing something wrong.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 24, 2015, 12:46pm UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/2 "2015-07-24T12:46:06Z")

</div>

Hi DevilsD,

I’ve assigned a member of support staff to look into this, and they’ll post here if they have any questions for you. Thanks for report!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [July 24, 2015, 2:25pm UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/3 "2015-07-24T14:25:41Z")

</div>

Hello DevilsD,

If you would like to gain access to information in your child actor you will need to get a reference to child actor before casting. This can be done in a few different ways. One way would be to get all actors of class. I hope that this information helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [July 25, 2015, 12:15am UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/4 "2015-07-25T00:15:57Z")

</div>

Can you take another look at images please. I dont want to access information from an instance, if you looked at images you would see logic im trying to use.

BP\_Portal\_Red is spawned in world as an instance, it inherits from BP\_Portal where logic is being used. Therefore i should be able to downcast to a deriving class type, if this is an illegal operation then warning message is incorrect.

BP\_Portal\_Red clearly inherits from BP\_Portal which warning is trying to deny.

---

<div class="post-metadata">

**Author:** ![DevilsD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devilsd/32/890854_2.png) [@DevilsD](https://forums.unrealengine.com/u/DevilsD)\
**Post date:** [July 27, 2015, 7:09am UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/5 "2015-07-27T07:09:52Z")

</div>

Can anyone comment on this please?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [July 27, 2015, 2:32pm UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/6 "2015-07-27T14:32:05Z")

</div>

Hello DevilsD,

After taking another look at issue it would appear that you are correct about warning message. I have written up a report ( UE-19197) to change warning and I have submitted it to developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

---

<div class="post-metadata">

**Author:** ![MilanRadeta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MilanRadeta](https://forums.unrealengine.com/u/MilanRadeta)\
**Post date:** [April 4, 2017, 8:09am UTC](https://forums.unrealengine.com/t/blueprint-parent-cast-to-child-type/326369/7 "2017-04-04T08:09:40Z")

</div>

Greetings

Recently we encountered this problem when we updated our project from using 4.13 to 4.15.  
No warnings in 4.13, but they started appearing in 4.15. after we recompile a blueprint.
