title: activerecord sum returns a string?
body: <p>This seems very strange to me, an active record sum returns a string, not a number</p>
  
  <pre><code>basket_items.sum("price")
  </code></pre>
  
  <p>This seems to make it work, but i thought i may have missed something, as this seems like very strange behaviour.</p>
  
  <pre><code>basket_items.sum("price").to_i
  </code></pre>