I'm trying to get list of my leads that have been qualified
http://myServerCRM/xrmservices/2011/organizationdata.svc/LeadSet()$filter=StatusCode eq 3
returns
Operator 'eq' incompatible with operand types 'Microsoft.Crm.Metadata.ComplexTypeInstance`1[[Microsoft.Xrm.Sdk.OptionSetValue, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]' and 'System.Int32' at position 11.
How can i make it work?