def tostr(value):
    """Cast value to str except when None

    value[in]          Value to be cast to str

    Returns value as str instance or None.
    """
    return None if value is None else str(value)