title: Returning a column value from a table in dataset
body: <p>I have a dataset with two tables.I want to get the value of first column from second table and initialize it to an int variable.<br>
  The name of that column was CONTACT_ID</p>
  
  <p>I tried like this.</p>
  
  <pre><code>  int Contract_id = Convert.ToInt32(dsDiscounts.Tables[1].Columns[0]);
  </code></pre>
  
  <p>but it was showing an error:  </p>
  
  <blockquote>
    <p>Unable to cast object of type 'System.Data.DataColumn' to type
    'System.IConvertible'.</p>
  </blockquote>
  
  <p>can anyone help me please</p>