The method withType automatically delegates to the task