Convert Array Of Ints To Array Of Objects In Typescript