⊦ cast(i, j) = bits2int(lastn(i→n(i), fillsgn(i→n(i), int2bits(j))))
Used simplifier rules: ⊦ i→n(n→i(n)) = n; Used terms: i, n→i(n)