Value of type '|1' cannot be converted to '|2'. You can use the 'Value' property to get the string value of the first element ...