BUG: wrong pointer casting now fixed in ANTs