Upgrade the specified element to be of the Dart type this was created for.
After upgrading the element passed in is invalid and the returned value should be used instead.