I need help converting an integer into an array. Basically, I have a 5 digit integer, lets say its 78722, and I need to convert it into an array that looks like this: [7] [8] [7] [2] [2]

In other words, array[0]=7, array[1]=8, array[2]=7, array[3]=2, and array[4]=2