convert_task function

Convert a Task from One Type to Another