Or just casting it for the encode/decode and keeping it nicely typed
everywhere else?