Pattern matching `Type` in a way that can be assigned to a `const` variable... is it possible? - C#