(4-27) Light switch widget

The widget is sending a message to an actor:

image

How is this reference Set? Assuming this is it:

Can you describe how you think it works? Maybe I’m missing something. There’s something dodgy here, if you have the correct type, there’s no need to cast (the blue note).

Also, why get Component by Class if you can just wire in a desired component instead?


Any reason why what I posted originally does not work for you?