Cast To.....

yes Correct. I am trying to call from inside a widget.