Convert maps to objects