```val stringOrInt: Union2<String, Int> = 0 ...
# arrow-contributors
r
Copy code
val stringOrInt: Union2<String, Int> = 0 //ok
val stringOrInt: Union2<String, Int> = "" //ok
val stringOrInt: Union2<String, Int> = 0.0 //not ok because not in the union