[Bug 59041] Incorrect Casting for NET 10 Runtime Apps