Converts constant string values to a different type.
Converts a string value. Throws an exception if a conversion error occurs.