Can you write a static helper that converts these using a switch (with no default case)? That way we get some compiler checking for this.