Create an automatic union type