title: FetchRequest - NSArray element failed to match the Swift Array Element type - Swift 2.0
body: <p>I want to do a <code>NSFetchRequest</code> to display my data into a <code>UICollectionView</code> :</p>
  
  <pre><code>import UIKit
  import CoreData
  
  let appDelegate: AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
  let context: NSManagedObjectContext = appDelegate.managedObjectContext
  class GarageViewController: UIViewController, UICollectionViewDelegate,UICollectionViewDataSource {
  
  @IBOutlet weak var backgroundView: UIImageView!
  
  @IBOutlet weak var collectionView: UICollectionView!
  
  var voitures: [Voiture]  = [Voiture]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      collectionView.reloadData()
  
      let fetchRequest = NSFetchRequest(entityName: "Voiture")
      fetchRequest.resultType = .DictionaryResultType
  
      do {
          try voitures = context.executeFetchRequest(fetchRequest) as! [Voiture]
      }
      catch let fetchError as NSError {
          print("VoitureFetch error: \(fetchError.localizedDescription)")
      }
  
      if (voitures.count &gt; 0) {
          for voiture in voitures as [Voiture] {
  
              print(voiture.nom!)
  
          }
      }
      else {
          print("Aucune voiture")
      }
  
  }
  </code></pre>
  
  <p>When I run the code I get that error :</p>
  
  <p><strong><code>fatal error: NSArray element failed to match the Swift Array Element type</code></strong></p>
  
  <p>Thank's for your help !</p>