mongoDB对某个字段进行聚合操作(平均值),但该字段为string类型该怎么解决?

mongoDB对某个字段进行聚合操作,但该字段为string类型该怎么解决

https://blog.csdn.net/qq_42741963/article/details/96967824