KeyValuePair cannot be converted to IEnumerable

I’m using the Watson NLU to do some text analysis. Per the Watson NLU documentation it states that the categories returned by Watson should be stored in a KeyValuePair: “The category which the specified text belongs to, stored in a list of <KeyValuePair<String,Double>> variable.”

I have created a variable, categories, of type System.Collections.Generic.KeyValuePair<System.String, System.Double>.

UI Path is returning the following error:

Error	ERROR	Validation Error	Compiler error(s) encountered processing expression "categories".

Value of type ‘System.Collections.Generic.KeyValuePair(Of String, Double)’ cannot be converted to ‘System.Collections.Generic.IEnumerable(Of System.Collections.Generic.KeyValuePair(Of String, Double))’.

How can I convert the KeyValuePair to an IEnumerable?

Thanks.

The error did not copy properly. This is the error I’m getting from UI Path:

Error ERROR Validation Error Compiler error(s) encountered processing expression “categories”.
Value of type ‘System.Collections.Generic.KeyValuePair(Of String, Double)’ cannot be converted to ‘System.Collections.Generic.IEnumerable(Of System.Collections.Generic.KeyValuePair(Of String, Double))’. Flowchart.xaml

I clearly need to step away from my computer for a bit. I just realized what I was missing. I’ve changed my variable type to IEnumerable<KeyValuePair<String, Double>> and the error is resolved.