Changing datatype of data holders in traj method.