You are trying to manipulate data items which are not compatible.
Ensure that the data items are of the same type.