title: Cast MySQL Decimal data type type to c# float data type
body: <p>I have a Decimal data type column in my MySQL database and i am reading it with <code>reader.Read()</code> in my C# code. Now I need to cast it to C# float data type. How can I do it:</p>
  
  <p><code>float fl = (float)reader[9];</code> throws <code>System.InvalidCastException</code></p>