title: Convert string to int and test success in C#
body: <p>How can you check whether a <strong>string</strong> is <strong>convertible</strong> to an <strong>int?</strong></p>
  
  <p>Let's say we have data like "House", "50", "Dog", "45.99", I want to know whether I should just use the <strong>string</strong> or use the parsed <strong>int</strong> value instead.</p>
  
  <p><em>In JavaScript we had this <a href="http://www.w3schools.com/jsref/jsref_parseInt.asp" rel="noreferrer">parseInt()</a> function. If the string <strong>couldn't be parsed</strong>, it would get back <strong>NaN</strong>.</em></p>