I am reading a file by using:
int len = (int)(new File(args[0]).length()); FileInputStream fis = new FileInputStream(args[0]); byte buf[] = n
Create a new int array and copy over the values, casting as needed.
int
int[] arr = new int[len]; for(int i = 0; i < len; i++) arr[i] = (int)buf[i];