Syntactic sugar to make what looks like a switch statement with an object value.