The `OfType` extension method would make the code more succinct, like a `.Where(v => v is T).Select(v => (v as T)!)`