On Monday, 26 October 2020 at 21:57:18 UTC, Not A Rectangle wrote:
Is this possible to do?

Only if you know the type ahead of time, then you can cast it.

Normally you'd probably just know an interface or base class it implements then you can cast to that, with the exact derived type being only known at runtime.

Reply via email to