title: Convert double to float by cast or Convert.ToSingle()?
body: <p>In C# I can convert doubles to floats by a cast <code>(float)</code> or by <code>Convert.ToSingle()</code>.</p>
  
  <pre><code>double x = 3.141592653589793238463;
  float a = (float)x;
  float b = Convert.ToSingle(x);
  </code></pre>
  
  <p><code>a</code> and <code>b</code> become equal.</p>
  
  <p>Are there any differences between both techniques? Which one should I prefer and why?</p>