Lights turns on according to the position of the sun

I have a error on blueprint, the called function Switch On and Switch Off must have a target.

should i cast ?

I can’t