1 2 3 4 5 6
void main () { Variant? foo = "baz"; Variant bar = (!) foo; string baz = (string) bar; assert (baz == "baz"); }