Could not cast value of type 'ProjectName.AddNewPropery' (0x10fa2edf0) to 'ProjectName.ViewProfile' in swift
<p>I am getting crash while pushing view controller in action method i used this code</p>

<pre><code> let vc = self.storyboard?.instantiateViewControllerWithIdentifier("addProperty") as! ViewProfile
 self.navigationController?.pushViewController(vc, animated: false)
</code></pre>

<p>What would be the reason? </p>