use numpy.ctypeslib.as_array for ctypes Array decoding