def convert(to, who, default="<STR_LIT>"):
if who is None:<EOL><INDENT>return default<EOL><DEDENT>try:<EOL><INDENT>return to(who)<EOL><DEDENT>except:  <EOL><INDENT>return default<EOL><DEDENT>
Converts data to a specific datatype.
In case of error, will return a default value.

:param to:      datatype to be casted to.
:param who:     value to cast.
:param default: value to return in case of error.
:return: a str value.