You could make use of an item userdata here:
```
local targetItem = Item(itemEx.uid)
targetItem:transform(itemEx.itemid + 1)
targetItem:decay()
```