Ensure PID and tuple ID are sent as ints