private static object ParseScalarType( IInputType sourceType, Type targetType, IValueNode literal) { object value = sourceType.ParseLiteral(literal.ValueOrNullValue()); if (!sourceType.ClrType.IsAssignableFrom(targetType)) { value = Convert.ChangeType(value, targetType); } return(value); }