Convert type to map[string]interface{}