getOrNull

Returns the Success value, or null if the outcome is a Failure.

Note: null is ambiguous when Ok is itself a nullable type. Use getOrDefault or getOrElse in that case.