The function get_from_string below basically casts a string to a variable by creating a stringstream from the string and
get_from_string
string
stringstream