import java.math {
    BigInteger {
        fromLong=valueOf
    }
}

"The given [[number]] converted to a [[Whole]]."
shared Whole wholeNumber(Integer number) {
    Integer int = number;
    if (int == 0) {
        return zeroImpl;
    } else if (int == 1) {
        return oneImpl;
    } else {
        return WholeImpl(fromLong(int));
    }
}