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