Return true iff this Union3 has a type in X1 .. X3.
X1
X3
bool get isValid => value is X1 || value is X2 || value is X3;