Use Rails 4.2+ API for typecasting on master
Use Rails 4.2+ API for typecasting on master

Note: this is still considered a private (internal) API on Rails side and is
subject to change in the future.

natefinch/discourse,natefinch/discourse