implemented getting int[] method

easy to get getting int[] object