Fixed Arrays.asList(long[]) throwing an error.

Found out that Arrays.asList(long[]) does not exist. Took a while to decide between using Long instead of long and then simply using Arrays.asList(appIds) but then thought that it would be annoying having to type "L" each time.