Cannot assign value of type String to type UILabel
<p>I have marked the part of my code where the problem is, it is commented out. The error message is:</p>

<blockquote>
  <p>Cannot assign value of type String! to type UILabel!.</p>
</blockquote>

<pre><code>func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue.identifier == "SendDataSegue" {
        if let sendToDetailViewController = segue.destinationViewController as? DetailViewController {
            var sendingText = metadataObj.stringValue
            sendToDetailViewController.messageLabelDos = sendingText
        }
    }
}
</code></pre>

<p>The label it should be changing is in my DetailViewController and it is a label. The code above is from my original ViewController. How can I make this work?</p>

<p>More code to put in context:</p>

<pre><code>if metadataObj.stringValue != nil {

dispatch_async(dispatch_get_main_queue()) {
    self.performSegueWithIdentifier("SendDataSegue", sender: self)
}

func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue.identifier == "SendDataSegue" {
        if let sendToDetailViewController = segue.destinationViewController as? DetailViewController {
            var sendingText = metadataObj.stringValue
            sendToDetailViewController.viaSegue = sendingText
        }
    }
}
</code></pre>