public static LongToIntFunction longToIntFunction(CheckedLongToIntFunction function) {
        return Unchecked.longToIntFunction(function, Unchecked.RETHROW_ALL);
    }
Wrap a {@link CheckedLongToIntFunction} in a {@link LongToIntFunction}.
<p>
Example:
<pre><code>
LongStream.of(1L, 2L, 3L).mapToInt(Unchecked.longToIntFunction(l -> {
    if (l &lt; 0L)
        throw new Exception("Only positive numbers allowed");

    return (int) l;
});
</code></pre>
jOOL/src/main/java/org/jooq/lambda/Sneaky.java