title: What to put in the Type targetType parameter in IValueConverter
body: <p>I am calling a IValueConverter class via code behind, but I am not sure what to put in the <code>Type targetType</code> parameter. The object is <code>string</code> but using that give me 'invalid expression term 'string'`</p>
  
  <p>my code to call the converter</p>
  
  <pre><code>secondConverter.Convert(score, string, null, CultureInfo.CurrentCulture);
  </code></pre>
  
  <p>The converter class</p>
  
  <pre><code>    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
      {
          TimeSpan ts = new TimeSpan(0, 0, (int)value);
  
          return String.Format("{0:D2}:{1:D2}:{2:D2}",
                          ts.Hours,
                          ts.Minutes,
                          ts.Seconds);
      }
  </code></pre>