I have two view controllers that send values back and forth via segues and the prepareForSegue method. This has been working out perfectly for me until I decided to
casting it as ViewController is working fine for me.
ViewController
var dest = segue.destinationViewController as! ViewController
And your segue connection should be :