title: Type safety: The expression of type Xclass needs unchecked conversion to conform to Xclass<Yclass>
body: <p>how to resolve this problem?
  Type safety: The expression of type mResponseValue needs unchecked conversion to conform to <code>mResponseValue&lt;mUserStatus&gt;</code></p>
  
  <pre><code>mResponseValue&lt;mUserStatus&gt; ResponseValue = Mobile.JSONtoClass(responseService, mResponseValue.class);
  </code></pre>
  
  <hr>
  
  <pre><code>public abstract class Mobile {
  
   public static String ObjToJson(Object obj)
   {    
       Gson gson = new Gson();
         return gson.toJson(obj);
   }
  
   public static &lt;T&gt; T JSONtoClass(String strRequest,Class&lt;T&gt; type)
   {
       Gson gson = new Gson();
       return gson.fromJson(strRequest, type);
   }  
  </code></pre>
  
  <p>}</p>