             break
         }
         
-        (self.navigationController? as T2GNaviViewController).toggleBarMenu(true)
+        if let navCtr = self.navigationController as? T2GNaviViewController {
+            navCtr.toggleBarMenu(true)
+        }
     }
 }
 

    func didSelectCellAtIndexPath(indexPath: NSIndexPath) {
        let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
        let newVC: ExampleViewController = storyboard.instantiateViewControllerWithIdentifier("ExampleVC") as ExampleViewController
        self.navigationController?.pushViewController(newVC, animated: true)
    }
    

            navCtr.navigationBar.barTintColor = self.statusBarBackgroundViewColor
            navCtr.navigationBar.tintColor = .whiteColor()
            
            if self.title == nil {
                self.title = "Root"
            }
            
            let text = self.title!
            let titleWidth = navCtr.navigationBar.frame.size.width * 0.57
            let titleView = T2GNavigationBarTitle(frame: CGRectMake(0.0, 0.0, titleWidth, 42.0), text: text, shouldHighlightText: true)
            titleView.addTarget(self.navigationController, action: "showPathPopover:", forControlEvents: UIControlEvents.TouchUpInside)
            
            self.navigationItem.titleView = titleView
        }
