title: Check DBNull in C#
body: <p>I have a StronglyTyped data Row object and I can access it like this. </p>
  
  <pre><code>accountFilter.Currency_ID
  </code></pre>
  
  <p>Currency_ID (Type of Int) is the row name. AccountFilter is the DataRow.
  When it gives a value, no problem. But when the column value is NULL, it gives a DBNull Exception. I want to check the value for DBNull but it doesn't work. </p>
  
  <pre><code>bool a = Convert.IsDBNull(accountFilter.Currency_ID.ToString()); //doesnt work
  </code></pre>
  
  <p>Non of <a href="http://forums.asp.net/t/1383849.aspx/1" rel="nofollow">these</a> examples dont work.</p>
  
  <p>Any solution?</p>