I am trying to set up an IValueConverter in WPF, C#. The purpose of this converter is to take the value that is passed in and divide by 100 so that we can get a double. I don't see any error's in then code before launching, but when I go to test it, i get the following error:

> 
> System.InvalidCastException: 'Specified cast is not valid.'
> 
> 
> 

Here is the code for the converter:

```
public class DecimalPlace : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {           
            return System.Convert.ToDouble(value) / 100.00;
        }
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }      
    }

```

* Value = 5
* targetType = {Name = "String" FullName = "System.String"}

I am unsure as to why I am unable to cast value as a double to do the required math

This is where I am calling it: 

```
<DataGridTextColumn Header="Price" Width="2*" Binding="{Binding intPrice, Converter={StaticResource DecimalPlace}, StringFormat='{}{0:C0}'}"/>

```