title: Expression.Convert type for Expression.Property
body: <p>I'm trying to convert a Parameter expression and having trouble with converting to value types.  Below is a sample of my code:</p>
  
  <pre><code>public static MemberExpression ConvertToType(ParameterExpression sourceParameter,
                                                PropertyInfo propertyInfo, 
                                                TypeCode typeCode)
  {
      var sourceExpressionProperty = Expression.Property(sourceParameter, sourceProperty);
  
      //throws an exception if typeCode is a value type.
      Expression convertedSource = Expression.Convert(sourceExpressionProperty,
                                                  Type.GetType("System." + typeCode));
  
      return convertedSource;
  }
  </code></pre>
  
  <p>I get the following invalid operation exception:</p>
  
  <p><code>No coercion operator is defined between types 'System.String' and 'System.Decimal'.</code></p>
  
  <p>Any help with this conversion would be greatly appreciated.</p>