Convert `open` to Cadence.

See #375.