void do_stuff(Integer[] integers) { .... } do_stuff(new String[]{"1", "2", "3"}) Compiler: whoops, you passed an array of strings when the API called for an array of integers.