Convert `readLeaf` to Cadence.

See #375.