Take advantage of pointer boxing to move code from C to OCaml.