findAndUpdateObject: Make sure the item type matches before assignment