If you see the related repro case doesn’t work with 5.10 (doesn’t compile).
AFAIK the only option to compile this on 5.10 is _openExistential.
_openExistential