Remove uses of type_cast_for_write
Passing tests on mysql
Do or do not.