Union type widening

The following comment (as well as the rest of his reply) might be helpful.