Cannot assign a value of type 'String' to type 'UIImage'
<p>This is my code please help, I'm following a tutorial but i can't figure out whats wrong. please help.</p>

<p>i'm trying to make if the image selected, then perform segue to another view controller and display the image which had been selected before</p>

<pre><code> override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath)
{
    self.performSegueWithIdentifier("showImage", sender: self)
}

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)
{
    if segue.identifier == "showImage"
    {
        let indexPaths = self.collectionView!.indexPathsForSelectedItems()!
        let indexPath = indexPaths[0] as NSIndexPath
        let vc = segue.destinationViewController as! SecondViewController
        vc.image = self.url[indexPath.row] //Error Cannot Assign a value of type 'String' to type 'UIImage'
    }
}
</code></pre>

<p>I would be thankful for help.</p>