How to cast variable from string to int in MVC .ASP NET
<p>I have this variable in MVC .ASP NET Razor Synthax:</p>

<pre><code>    var data = System.Web.HttpContext.Current.Request.Form["data"];
</code></pre>

<p>var data is a string. Is there any way i can type cast it into int?</p>

<p>thanks</p>