cast the output array to type GetNTAReal() as @baroobob suggested

but still does not solve problem