title: Typecasting of Azure cache object is always null
body: <p>That's very weird as unable to cast a <code>DataCacheItem</code> to List Collection.</p>
  
  <p>i am pulling the value from database and Storing it to in Cache but if i ask cache to return the data with TypeCast, then it refused to do that.</p>
  
  <pre><code>Cannot cast 'isValueInCache' (which has an actual type of     
  'Microsoft.ApplicationServer.Caching.DataCacheItem') to      
  'System.Collections.Generic.List&lt;MMD.Data.HumanGender&gt;'
  
  
  //Setting Value in Cache Object
  var isValueInCache = BaseCache.Instance().RetrieveCacheValue("allGenders");
  
  //TypeCasting of Data
  var isSeariled = isValueInCache == null ? 
  Newtonsoft.Json.JsonConvert.DeserializeObject(proxy.GetAllGenders(), 
  typeof(List&lt;HumanGender&gt;)) as List&lt;HumanGender&gt;
  : isValueInCache as List&lt;HumanGender&gt;;
  </code></pre>
  
  <p>i haven't found out why it not able to cast the <code>Object</code> to <code>List&lt;T&gt;</code>. only Work around here i seem , Cast object in <code>JSON</code> format, pull by Key and Create <code>List Object</code>. </p>
  
  <blockquote>
    <p>Update 1:</p>
  </blockquote>
  
  <p>this case is with not only List but also any Entity Object which is Retrieved form the Cache. </p>
  
  <blockquote>
    <p>Update 2:</p>
  </blockquote>
  
  <p>Not Working with DTO also.</p>
  
  <p>Still looking in work around in this.</p>