title: How to convert C# nullable int to int
body: <p>How do I convert a nullable <code>int</code> to an <code>int</code>? Suppose I have 2 type of int as below:</p>
  
  <pre><code>int? v1;  
  int v2; 
  </code></pre>
  
  <p>I want to assign <code>v1</code>'s value to <code>v2</code>. <code>v2 = v1;</code> will cause an error. How do I convert <code>v1</code> to <code>v2</code>?</p>