title: How to convert a StringVar to an Integer
body: <p>I'm writing a basic number guessing game, and I'm trying to put the program into a window. Everything works fine except when I try to access the variable created in my <code>entry_box</code> and then compare it to an <code>int</code>.</p>
  
  <p>Right now, the variable coming out of the <code>entry_box</code> is a <code>StringVar</code>. How do I convert this to an integer so I can compare the variables?</p>
  
  <pre><code># Creates the entry box and variable that will be used in it
  # answer = StringVar()
  entry_box = Entry(window, textvariable = answer, width = 25, bg = 'white') .place(x = 350, y = 0)
  
  num1 = answer.get()
  </code></pre>
  
  <p>So right now answer is a StringVar, and im trying to convert it to an Integer. Any help would be appreciated.</p>