Convert list structure to contain data of void pointers