as4OrNull property

X4? get as4OrNull

Return the value if it has type X4, otherwise null.

Implementation

X4? get as4OrNull => value is X4 ? value as X4 : null;