I think comparing arrays should work if comparison of individual elements should work. int[] a; long[] b; assert(a == b); A minimalistic-motivated counter-argument could be put forth, but I think we want smart minimalistic, not dumb minimalistic. Andrei