# What do i connect in to the Object node in Cast to?

**URL:** <https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, question\
**Created:** [December 27, 2015, 7:37pm UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530 "2015-12-27T19:37:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pelucrecio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelucrecio](https://forums.unrealengine.com/u/Pelucrecio)\
**Post date:** [December 27, 2015, 7:37pm UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530/1 "2015-12-27T19:37:45Z")

</div>

![72020-sin+título.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/2/2b29ada6e41e90a5f905848a28e385b84e69243d.png)

This is my Character Blueprint and it’s working good. When i look the Switch (InterruptorBP) and click it activate the On/Off Event Luz 1.

 ![72031-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/0/6407490813f1374ef91866a34c39051f1da22860.png)

My problem start here. In this event i want to call the Lamp Blueprint (Luz Techo) to “Set intensity” of his pointlight but i don’t know what do i have to connect in “Object”

---

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [December 27, 2015, 8:58pm UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530/2 "2015-12-27T20:58:47Z")

</div>

YOu have to cast the specific BP switch actor. So if you have several of these switches in your level, then you have to get the one that the character is hitting and input that into the object of the cast node.

---

<div class="post-metadata">

**Author:** ![Pelucrecio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelucrecio](https://forums.unrealengine.com/u/Pelucrecio)\
**Post date:** [December 27, 2015, 9:55pm UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530/3 "2015-12-27T21:55:08Z")

</div>

I prefer to avoid talking about it because I can not solve. I used " Cast To" with “Begin Overlap” a lot of times and I had no problem because this gives the connection to “Object”. Is there another way to do this without using a custom event ? 😕

---

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [December 27, 2015, 10:54pm UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530/4 "2015-12-27T22:54:54Z")

</div>

Is that a custom event that is firing the castTo node?

---

<div class="post-metadata">

**Author:** ![Pelucrecio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelucrecio](https://forums.unrealengine.com/u/Pelucrecio)\
**Post date:** [December 27, 2015, 11:45pm UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530/5 "2015-12-27T23:45:38Z")

</div>

Yes, It’s.

---

<div class="post-metadata">

**Author:** ![SterlingY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SterlingY](https://forums.unrealengine.com/u/SterlingY)\
**Post date:** [December 28, 2015, 12:01am UTC](https://forums.unrealengine.com/t/what-do-i-connect-in-to-the-object-node-in-cast-to/342530/6 "2015-12-28T00:01:33Z")

</div>

Then pass the object with the event call node. You can then connect to the object input on the CastTo node.
