title: How can I convert a var type to int?
body: <p>Here from the following, I am getting a var type variable in my code:</p>
  <pre><code>var FormID = from n in dtEnDate.AsEnumerable()
               where n.Field&lt;int&gt;(&quot;Tax_Setup_UID&quot;) ==
                     Convert.ToInt32(item.GetDataKeyValue(&quot;Tax_Setup_UID&quot;))
               select n.Field&lt;string&gt;(&quot;FormID&quot;);
  </code></pre>
  <p>Here it is giving me the formid. Now I want to convert this var type variable to an int for next use and if I try without conversion it is giving me an error. But I can't do it.</p>