title: iOS Swift 'Could not find member executeFetchRequest'
body: <p>In an attempt to port some small existing code to Swift I'm running into a bit of a problem.
  I can do the following in Objective-C</p>
  
  <pre><code>NSMutablArray *myMutableArray = [NSMutableArray array];
  myMutablArray = [self.managedObjectContext executeFetchRequest:fetchRequest error:&amp;error].mutableCopy;
  </code></pre>
  
  <p>However in my attempt at trying this in swift I get 'Could not find member executeFetchRequest'</p>
  
  <pre><code>class exampleTableViewController: UITableViewController {
  
    var managedObjectContext: NSManagedObjectContext? = nil
    var myMutableArray: NSMutableArray = NSMutablArray()
  
    override func viewWillAppear(animated: Bool) {        
        super.viewWillAppear(animated)
  
        var request = NSFetchRequest(entityName: "TestTable")
        var error: NSError? = nil
  
        self.myMutableArray = self.managedObjectContext!.executeFetchRequest(request, error: &amp;error)       
     }
     ...
  }
  </code></pre>
  
  <p>Could someone please point me in the right direction?</p>
  
  <p>Many thanks</p>
  
  <p>EDIT: Pasted code as it looks in xcode.</p>