Number parse

Hi. I’m trying to dissect an int into different separate ints. Is there a way to take eacht character/number in an int and parse it onto another int? If so, is there a way to put them into an array easily?

For example: 1305 becomes
NumberArray : int that contains 1, 3, 0 and 5.

You can do a function like this :

//c#
void IntToIntArray(int numberToConvert, out int[] numberArray)
	{
		string sNumber = numberToConvert.ToString();
		numberArray = new int[sNumber.Length];
		for(int i = 0; i < numberArray.Length; i++)
		{
			numberArray _= int.Parse(sNumber*.ToString());*_

_ Debug.Log(numberArray*);
}
}*_