title: Convert optional string to int in Swift
body: <p>I am having troubles while converting optional string to int.</p>
  
  <pre><code>   println("str_VAR = \(str_VAR)")      
     println(str_VAR.toInt())
  </code></pre>
  
  <p>Result is</p>
  
  <pre><code>   str_VAR = Optional(100)
     nil
  </code></pre>
  
  <p>And i want it to be </p>
  
  <pre><code>   str_VAR = Optional(100)
     100
  </code></pre>