title: Swift popViewController Send Data
body: <pre><code>class SelectTag: UIViewController {
      var selectedTag = [0,1,2]
  
      @IBAction func endSelectTag(_ sender: Any) {
  
          self.navigationController?.popViewController(animated: true)
      }
  }
  </code></pre>
  
  <p>can i add Data before run popViewController?</p>
  
  <p>i tried this</p>
  
  <pre><code>(self.parent as! MyPage).seleteTag = seletedTag
  
  Could not cast value of type UINavigationController to MyPage
  </code></pre>