Adding convertToDict and convertToList utils