move the conversion from Task Class to Storage Class
Add in assertion and exception in Storage Class