Dynamic array takes int and string elements