check type of task explicitly
Merge pull request #2397 from dparalen/play_task_type_check

check type of task explicitly