Converts the string to the type of the value and sets the value with it.
Note that this function is dangerous as it does not return any indication if the conversion worked or not.
value |
the value to set |
value_str |
the string to get the value from |