title: How can save the text of the label as an integer variable in swift?
body: <p>I need to save the changing text of my label as a variable, but if write the following code:</p>
  
  <pre><code>var warn = Int(self.dyn.text)
  </code></pre>
  
  <p>It says:</p>
  
  <pre><code>Value of optional type 'String?' must be unwrapped to a value of type 'String'
  Coalesce using '??' to provide a default when the optional value contains 'nil'
  Force-unwrap using '!' to abort execution if the optional value contains 'nil'
  </code></pre>
  
  <p>What code should I use?</p>