Use void* for the Task::read helpers.

Resolves #832.