I\'m looking for a readable way to do a type-safe cast in TypeScript. I have an object with a discriminating union, and I have an unclear syntax for casting.