Objects not storing when using another event

I’m using single line trace to get an actor and then save it into a variable in another blueprint. I used custom events that take input as an Actor and then cast that into the type of object I want and try to store that. For some reason I’m not able to store it. I get a casting error when I try to call it from another event. pictures posted

for event Which_House the casting is working, but Tick event is the problem. I can’t seem to be able to access the variable from there or the variable is not set correctly. I don’t know what to do.