         let vc = UIStoryboard(name: "Profile", bundle: nil).instantiateViewControllerWithIdentifier("ProfileViewController") as! ProfileViewController
 
         let user = friends[indexPath.row]
-        let profileUser: ProfileUser = .UserType(user)
-        prepareProfileViewController(vc, withProfileUser: profileUser)
+        vc.prepare(withUser: user)
 
         recoverOriginalNavigationDelegate()
 

        default:
            break
        }
    }

    private func prepareProfileViewController(vc: ProfileViewController, withProfileUser profileUser: ProfileUser?) {

        vc.profileUser = profileUser

        vc.hidesBottomBarWhenPushed = true

        vc.setBackButtonWithTitle()
    }
}


        case "showProfile":

            let vc = segue.destinationViewController as! ProfileViewController

            if let user = sender as? User {
               vc.prepare(withUser: user)
                
            } else if let discoveredUser = (sender as? Box<DiscoveredUser>)?.value {
                vc.prepare(withDiscoveredUser: discoveredUser)
            }

            recoverOriginalNavigationDelegate()
            
