More synchronization for collections
Rename `cast` to `castToJsonMap`