Change cast to TTask for return the name