Rename type_cast to type_cast_from_database

Ref https://github.com/rails/rails/commit/d24e6407a7f5d662cb52ed57efc4d8ee11758170
Merge pull request #485 from yahonda/rails42_type_cast_from_database

Rails4.2 Rename type_cast to type_cast_from_database