WithNaN.hookOpCast

Lhs hookOpCast(Lhs, Rhs)(Rhs rhs)

If rhs is WithNaN.defaultValue!Rhs, returns WithNaN.defaultValue!Lhs. Otherwise, returns cast(Lhs) rhs.

Parameters

rhsthe value being cast (Rhs is the first argument to Checked)
Lhsthe target type of the cast

Returns

The result of the cast operation.