Converts the string to its type_t equivalent. A return value indicates whether the conversion succeeded or failed.