Discriminator for unions.