title: how to extract session from XPObjectSpace in DevExpress 12.2?
body: <p>i have the following code:</p>
  
  <pre><code>Me.ASPxMenu1.DataSource = New HierarchicalMenuItemCollection(New XPCollection(Of IMenuItem)(DirectCast(WebApplication.Instance.ObjectSpaceProvider.CreateObjectSpace(), XPObjectSpace).session,
                                                 CType(New NullOperator("ParentItem"), CriteriaOperator),
                                                 New SortProperty("Order", DB.SortingDirection.Ascending)))
  </code></pre>
  
  <p>it fails in DirectCast,
  in DevExpress 11.2 it was</p>
  
  <pre><code>Ctype(WebApplication.Instance.ObjectSpaceProvider.CreateObjectSpace(), ObjectSpace).Session
  </code></pre>
  
  <p>Somebody knows how to do it in DevExpress 12.2?
  Thanks for any kind of help</p>