hop task: fix casting weirdness