Internal Error E0: Invalid Cast, with RELEASE config

Element build 2480, Island/Windows

The attached project will give Internal Error E0: Invalid Cast, for Release config. Debug config fine.
@ck @mh
InvalidCastTest.7z (27.1 KB)

Thanks, logged as bugs://83878

bugs://83878 got closed with status fixed.