Converting and casting primitive array elements follow the same rules as converting and casting simple primitive variables. public class MainClass { public static void main(String[] argv) { int sizes[] = { 4, 6, 8, 10, 14, 20 }; Object obj = sizes; int x = ((int[]) obj)[2]; } }