I had a match before, but it really doesn't add any value since I don't need the cast anywhere. So I found the single `isInstanceOf` actually a bit more readable...