CMap to array conversion