convert ROOT arrays to numpy arrays and back