Fixed type conversion errors for insert, update, and remove.