             if let httpResponse = response as? NSHTTPURLResponse {
                 if httpResponse.statusCode >= 200 && httpResponse.statusCode < 300 {
                     dispatch_async(dispatch_get_main_queue(), { () -> Void in
-                        self.loadResponse(NSString(data: data, encoding: NSUTF8StringEncoding)!)
+                        if let response = NSString(data: data, encoding: NSUTF8StringEncoding) as? String {
+                            self.loadResponse(response)
+                        }
                     })
                 }
             }

        activeSessionTask?.resume()
    }

    private func loadResponse(response: NSString) {
        let webViewController = WebViewController()
        webViewController.URL = URL
        navigationController?.pushViewController(webViewController, animated: true)

    }
}

func JSONStringify(object: AnyObject) -> String {
    if let data = NSJSONSerialization.dataWithJSONObject([object], options: nil, error: nil),
        string = NSString(data: data, encoding: NSUTF8StringEncoding) as? String {
            return string[Range(start: string.startIndex.successor(), end: string.endIndex.predecessor())]
    } else {
        return "null"
    }
