Sub-issue of #22418. Port CastExpr to use the try_to_proto / try_from_proto hooks added in #21929.
Replace the CastExpr arm in datafusion/proto/src/physical_plan/{to_proto,from_proto}.rs with try_to_proto / try_from_proto impls next to CastExpr. See the Column / BinaryExpr migrations in #21929 for reference.
Sub-issue of #22418. Port
CastExprto use thetry_to_proto/try_from_protohooks added in #21929.Replace the
CastExprarm indatafusion/proto/src/physical_plan/{to_proto,from_proto}.rswithtry_to_proto/try_from_protoimpls next toCastExpr. See theColumn/BinaryExprmigrations in #21929 for reference.