as2 property

X2 get as2

Return the value if it has type X2, otherwise throw.

Implementation

X2 get as2 => value as X2;