Add this line to your application's Gemfile:
gem 'casted_hash'
And then execute:
$ bundle
Or install it yourself as:
$ gem install casted_hash