add cast primitive.M to map[string]interface{}