split typecast method into two

one method for fetching data and one for sending to db.

fixes #2287
rename column schema typecast method
rename ColumnSchema::typecast to phpTypecast
Merge pull request #4063 from yiisoft/typecast-split

split typecast method into two