When attempting to downcast to a type, we check if the type is correct here. However, the Any::downcast method used inside this call does this anyways.
We should remove this check, and then match on the returned Result from the Any version.
Spotted by @cart in #5010 here.
When attempting to downcast to a type, we check if the type is correct here. However, the
Any::downcastmethod used inside this call does this anyways.We should remove this check, and then match on the returned
Resultfrom theAnyversion.Spotted by @cart in #5010 here.