static <T> ToByte<T> of(ToByteFunction<T> lambda) {
        if (lambda instanceof ToByte) {
            return (ToByte<T>) lambda;
        } else {
            return lambda::applyAsByte;
        }
    }
Returns a typed {@code ToByte<T>} using the provided {@code lambda}.

@param <T> type to extract from
@param lambda to convert
@return a typed {@code ToByte<T>} using the provided {@code lambda}

@throws NullPointerException if the provided {@code lambda} is
{@code null}
runtime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/ToByte.java