def to_nat
import bend-collections-laws-math@1.0.0.0/src/math/random/rand.bend as Randimport Base
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as X
201def to_nat(-S: Data, p: W.U64 & S) -> Nat & S:
202 (x, s) = p
203 (X.n48(x), s)