converting type-level natural numbers to data-level