Change visibility mesh object with button

I want a button (from the widget blueprint) to toggle the visibility of an object.

The reference part I don’t really get , I’ve tried to create a var. from a scene object and wired that into the Cast To Object slot but no luck so far.
What is confusing to me is why it needs a reference in the first place. The blueprint I cast to is from a mesh object already.