correct the task id type in isVolunteeredTask

- correct the task id type in isVolunteeredTask to
  fix compilation error.