title: Converting String to Int in Swift
body: <p>Hello I'm new to Swift and I'm building a calculator in Xcode. In my main storyboard I have a <code>UIButton</code>, <code>UILabel</code> and a <code>UITextField</code> that will get a number and by pressing the button, label's text should show the entered number + 5. In my app I need to convert a <code>String</code> variable to <code>Int</code>.</p>
  
  <p>I tried the snippet below I didn't get any meaningful result.</p>
  
  <pre><code>var e = texti.text
  let f: Int? = e.toInt()
  let kashk = f * 2
  label.text = "\(pashm)"
  </code></pre>