title: Long.Tryparse Overload & Convert error C#
body: <p>I am having difficulties with this code where I'm trying to put a certain conversion for a long from data out of a dataset.</p>
  
  <p>I'm trying to check if it's possible to convert the value inside that position in the dataset. If it doesn't work, it means that there are no items in the dataset, because all the other entrants (readed from a txtfile) are valid</p>
  
  <p>Code:</p>
  
  <pre><code>long Recid = 0;
  Boolean checkrecid = long.TryParse(dts.Tables[0].Rows[0]["RECID"], out Recid)
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>The best overloaded method match for 'long.TryParse(string, out long)' has some invalid arguments and
  Argument 1: cannot convert from 'object' to 'string'    
  </code></pre>
  
  <p>Thanks in advance.</p>