title: learning swift trying to understand how to make code simplier
body: <p>is it possible to make this void code simplier</p>
  
  <p>it basicly grab 2 values from 2 box and depending on the selected
  operator make the calculation.</p>
  
  <pre><code>   @IBAction func enterpressedinbox2(sender: AnyObject) {
      let value1toint = Int(value1.stringValue)
      let value2toint = Int(value2.stringValue)
      var result = 0;
  
      if operatorselection.stringValue == "+"{
          result = value1toint! + value2toint!
      }
      if operatorselection.stringValue == "-"{
          result = value1toint! - value2toint!
      }
      if operatorselection.stringValue == "*"{
          result = value1toint! * value2toint!
      }
      if operatorselection.stringValue == "/"{
          result = value1toint! / value2toint!
      }
      let resultinttostring = String(result)
  
      resultlabel.stringValue = ": " + resultinttostring
      view.window!.title = "The result is " + resultinttostring
  }
  </code></pre>