[ci skip] document type_cast_for_write