converting data-level natural numbers to type-level