Can't directly use the update data when the old data is None.
We should apply astype() to the update data to make sure
the update data has the same data type as the old data.