Use type_cast method on connection adapter for rails 4.2 compatibility.
Merge pull request #185 from Shopify/type-cast-rails-4.2

Use type_cast method on connection adapter for rails 4.2 compatibility.