avoid auto-casting from hdf5 to array