Remove type_cast_on_write