Convert to correct Array / Set