We need to document `cast_value` too and add ` # :api: public` on it.