Update the type of the item that we're storing.