arraytolist utility