title: Unable to cast object of type 'System.String' to type 'System.Byte[]'
body: <p>I am  saving Image in a database in a wpf App. but when i retrieve it it gives me type cast error.</p>
  
  <p><strong>Unable to cast object of type 'System.String' to type 'System.Byte[]'.</strong></p>
  
  <p>i am using following code to type cast</p>
  
  <pre><code>byte[] data = (byte[])ds.Tables[0].Rows[0]["ProjectIcons"];
  </code></pre>