In the bottom branch of the code, you’re saving the object that has failed to Cast. You need to save the newly created object.
In the bottom branch of the code, you’re saving the object that has failed to Cast. You need to save the newly created object.