title: cant get the integer from core data atribute
body: <p>I have a core data model, where I added entity named CurrentLevel and an attribute called currentLevel and of int16 type. I am trying to save a simple integer into it like this: </p>
  
  <pre><code>    func saveCurrentLevel(cLevel: Int16){
  
      let appDelegate =
      UIApplication.sharedApplication().delegate as! AppDelegate
  
      let managedContext = appDelegate.managedObjectContext!
  
      let entity =  NSEntityDescription.entityForName("CurrentLevel",
          inManagedObjectContext:
          managedContext)
  
      let curLevel = NSManagedObject(entity: entity!,
          insertIntoManagedObjectContext:managedContext)
  
      curLevel.setValue(NSNumber(short: cLevel), forKey: "currentLevel")
  
      var error: NSError?
      if !managedContext.save(&amp;error) {
          println("Could not save \(error), \(error?.userInfo)")
      }
  
  }
  </code></pre>
  
  <p>and this is my method for fetching </p>
  
  <pre><code>func fetchTheStuff() {
  
      //1
      let appDelegate =
      UIApplication.sharedApplication().delegate as! AppDelegate
  
      let managedContext = appDelegate.managedObjectContext!
  
      //2
      let fetchRequest = NSFetchRequest(entityName:"CurrentLevel")
  
      //3
      var error: NSError?
  
      var fetchedResults =
      managedContext.executeFetchRequest(fetchRequest,
          error: &amp;error) as? [NSManagedObject]
  
  
  
      if let results = fetchedResults {
          println(results)
      } else {
          println("Could not fetch \(error), \(error!.userInfo)")
      }
  
  }
  </code></pre>
  
  <p>I need that the fetched result would be just a simple integer and I cant find a way with core data to do so. Anyone know how ad/or what I am doing wrong? </p>