AnyObject]], selectedSubjects: [Subject]) { let storyboard = UIStoryboard(name: "AddContract", bundle: nil) let vc = storyboard.instantiateViewController(withIdentifier: "SelectVendorViewController") if let selectVendorVC = vc as? SelectVendorViewController { selectVendorVC.selectedVendors = NSMutableArray(array: selectedVendors) selectVendorVC.subjects = selectedSubjects selectVendorVC.delegate = self } if let nvc = self.viewControllers?[2] as? UINavigationController { nvc.pushViewController(vc, animated: true) } } }