title: Handle nulls correctly
body: <p>I have the following code -</p>
  
  <pre><code>int lat = System.Convert.ToInt16(latTextBox1.Text);
  </code></pre>
  
  <p>This is happening on a changed event.</p>
  
  <p>However my code is breaking on this line saying -</p>
  
  <pre><code>Input string was not in a correct format.
  </code></pre>
  
  <p>Where <code>latTextBox1.Text</code> = <code>""</code> which is an empty string.
  I think this is breaking because it cannot convert an empty string into a null value.</p>
  
  <p>How can I modify my code to account for null values?</p>