orNull

fun <T> Optional<T>.orNull(): T?(source)

Returns value or null from Optional. Useful when using kotlin-like T? and Optional.