title: Why is my ConditionOperator.In with string values resulting in SQL with int values?
body: <p>I'm writing a QueryExpression with a Filter using the ConditionOperator.In operator and passing strings as the values.  However, using trace on the CRM server, I'm able to view the SQL generated, and it's replacing my strings with "1, 2, 3".</p>
  
  <p>Specifically, this code:</p>
  
  <pre><code>var filter = new FilterExpression(LogicalOperator.And);
  filter.AddCondition("primaryobjecttypecode", ConditionOperator.In, "account", "contact");
  
  var query = new QueryExpression("sdkmessagefilter")
  {
      ColumnSet = new ColumnSet("primaryobjecttypecode"),
      Criteria = filter,
      LinkEntities =
          {
              new LinkEntity()
              {
                   LinkFromEntityName = "sdkmessagefilter",
                   LinkFromAttributeName =  "sdkmessageid",
                   LinkToEntityName = "sdkmessage",
                   LinkToAttributeName = "sdkmessageid",
                   Columns = new ColumnSet("name"),                              
               },                                                       
           }
   };
  
   var response = orgProxy.RetrieveMultiple(query);
  </code></pre>
  
  <p>Results in this SQL:</p>
  
  <pre><code>select top 5001 
      "sdkmessagefilter0".PrimaryObjectTypeCode as "primaryobjecttypecode",
      "sdkmessage1".Name as "sdkmessage1.name" 
  from
      SdkMessageFilter as "sdkmessagefilter0" 
      join SdkMessage as "sdkmessage1" 
         on ("sdkmessagefilter0".SdkMessageId  =      "sdkmessage1".SdkMessageId) 
  where
      ((("sdkmessagefilter0".PrimaryObjectTypeCode in (1, 2)))) 
  order by "sdkmessagefilter0".SdkMessageFilterId asc
  </code></pre>
  
  <p>Ultimately, this results in a SqlException due to a failure to case "1" as a string.  </p>
  
  <p><strong>Why is are {"account", "contact"} string values turning into {1, 2} int values?</strong></p>
  
  <p>I'm running Dynamics CRM 2011 UR 10 on the server and my app is using SDK 5.0.9689.2166</p>