title: Xcode - Swift Compiler Error: cannot convert the expression's type 'Double' to type 'Double'
body: <p><strong>How to convert a label outlet string to a double in swift?</strong></p>
  
  <p>I have a timer which is updating the label: labelOutletForSecondsCount.text. The label is initialised with a String "0,00". I than wanted to save the stopped timeString (I'm getting from my timer) as a Double in a variable to use it in some calculation.</p>
  
  <p>I thought that this line of code should do it but I get the following "Swift Compiler Error: cannot convert the expression's type 'Double' to type 'Double'".</p>
  
  <pre><code>var timeStringIntoDoubleValue = (labelOutletForSecondsCount.text as NSString).doubleValue
  </code></pre>
  
  <p>It worked fine with this line of code:</p>
  
  <pre><code>var textFieldInsertLengthIntoDoubleValue = (textFieldInsertLength.text as NSString).doubleValue
  </code></pre>
  
  <p>But why is it not working with the labelOutletForSecondsCount.text?</p>
  
  <p>I should mention that I'm doing this in computed properties:</p>
  
  <pre><code>var length : Double {
      var textFieldInsertLengthIntoDoubleValue = (textFieldInsertLength.text as NSString).doubleValue
      return textFieldInsertLengthIntoDoubleValue
  }
  
  var time : Double {
      var timeStringIntoDoubleValue = (labelOutletForSecondsCount.text as NSString).doubleValue
      return timeStringIntoDoubleValue
  }
  </code></pre>
  
  <p>This most likely adds to the strange error: cannot convert the expression's type 'Double' to type 'Double'.</p>