I have two libraries, one which uses
Ctypes and another which does FFI directly and I would like to pass values between them.
module Ct = struct type t = unit ptr let foo : unit -> t = ... end module Fi = struct type t external bar : t -> ... = ... end
The underlying data structures managed by both libraries are the same. How can I cast a
Ct.t to a