Add convert function for converting values in maps