Fix task type to get implicit conversion.