step 1

Getting text from the text box and checking to see if it is on or off
Casting as well