tta: cast output data pointer to the correct type