How to reference boolean value from widget?

I am trying to reference whether or not the toggle button has been checked.