Converts a nullable A? to a Validated<E, A>, where the provided ifNull output value is returned as Invalid when the specified value is null.
A?
Validated<E, A>
ifNull