<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def toList(value, itemcast=None, delim=','):
 """ Returns a list of strings from the specified value. Parameters: value (str):
 comma delimited string to convert to list. itemcast (func):
 Function to cast each list item to (default str). delim (str):
 string delimiter (optional; default ','). """

    value = value or ''
    itemcast = itemcast or str
    return [itemcast(item) for item in value.split(delim) if item != '']