title: convert double to float
body: <p>I've seen an example where the following code is used to convert a double to a float:</p>
  
  <pre><code>Double.valueOf(someDouble).floatValue()
  </code></pre>
  
  <p>I would just do it like</p>
  
  <pre><code>(float)someDouble
  </code></pre>
  
  <p>Is there any advantage to using the former?</p>