title: Datagridview how to cast selected row to custom object
body: <p>I use c# winforms with MSSQL database.
  I have table in database "Pilots"
  , i fill datagridview "dgvPilots", with data from Pilots table.</p>
  
  <pre><code>dgvPilots.DataSource = Connection.dm.Pilots.ToList();
  </code></pre>
  
  <p>I enable multiselect.
  now i need to get multiselected data from datagridview.
  How can i multiselected rows cast to "Pilots" object and get PilotsID.</p>
  
  <p>My current error is "Unable to cast object type DataGridViewRow to type ".Data.Pilots"...</p>
  
  <p>i also try casting like this</p>
  
  <pre><code>dgvPilots.SelectedRows.Cast&lt;Pilots&gt;().ToList();
  </code></pre>
  
  <p>but it return DataGridViewRow item type.</p>