Added a function called toMod' that converts between integral types.