Define case method on Object