Is there a way to check if an enum is a specific case without switching on it?

If you want to check for a case, that's not gonna work

let some: Swift.Result<Int, Error> = .success(0)
XCTAssertEqual(some, .success(_)) // error
XCTAssertEqual(some, Swift.Result<Int, Error>.success(_)) // error

I wrote a pitch on it a while ago: Comparing enums without their associated values

I just need to find some time to figure out the best way to do it.