On Wednesday, 12 March 2014 at 07:43:46 UTC, bearophile wrote: > monarch_dodra: > >> int[] a = [0, 1, 2, 3]; >> int[2][1][2][1] b; >> *cast(int[4]*)&b = a; >> assert(b == [[[[0, 1]], [[2, 3]]]]); > > Those pointers are not needed: > > cast(int[4])b = a; > > Bye, > bearoophile Thanks for this, the casts work perfectly albeit a little ugly :D Cheers, ed