title: Specified cast is not valid while processing fieldreader
body: <p>The specified cast not valid occurs when I try to get the fieldreader to datatype int.</p>
  
  <p><code>_userid</code> is of <code>int</code> type in database</p>
  
  <pre><code>var _fieldReader = sqlCmd.ExecuteReader();
  
  while (_fieldReader.Read())
  {
        _userId = _fieldReader.GetInt16(0);
  }
  sqlCon.Close();
  </code></pre>
  
  <p>Can anyone please help me with the issue?</p>