work around for numpy issue with casting recarrays

see https://github.com/numpy/numpy/issues/3256 for problem