     override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
     {
         let sections = fetchedResultsController.sections as Array!
-        let sectionInfo = sections[section] as NSFetchedResultsSectionInfo
+        let sectionInfo = sections[section] as! NSFetchedResultsSectionInfo
 
         return sectionInfo.numberOfObjects
     }


    override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath)
    {
        cell.textLabel?.font = UIFont.preferredFontForTextStyle((cell.textLabel?.font.fontDescriptor().objectForKey("NSCTFontUIUsageAttribute") as String))
        cell.detailTextLabel?.font = UIFont.preferredFontForTextStyle((cell.detailTextLabel?.font.fontDescriptor().objectForKey("NSCTFontUIUsageAttribute") as String))
    }


    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
    {
        let station = fetchedResultsController.objectAtIndexPath(indexPath) as CDStation
        //let cell = tableView.cellForRowAtIndexPath(indexPath)

        station.isHidden = NSNumber(bool: !station.isHidden.boolValue)


    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
    {
        let cell = tableView.dequeueReusableCellWithIdentifier("StationCell", forIndexPath: indexPath) as! UITableViewCell

        configureCell(cell, atIndexPath: indexPath)

