[BACKLOG-1445] Make agg type conversion code available to inline modeling