Unchecked assignments RealmResults
<p>Im getting this following warning in my code.
 <code>Unchecked assignment: 'io.realm.RealmResults' to 'io.realm.RealmResults&lt;com.mycompany.app.delivery.Models.Profile&gt;'</code></p>

<p>I have this method in <code>DBManager</code></p>

<pre><code>protected RealmResults getProfileDataByStaffId(String staffId){
        Realm realm = Realm.getDefaultInstance();
        final RealmResults&lt;Profile&gt; profile = realm.where(Profile.class).equalTo("staffId", staffId).findAll();
        return profile;
    }
</code></pre>

<p>and in my Activity im calling method like this</p>

<pre><code>DBManager dbManager = new DBManager();
RealmResults&lt;Profile&gt; results = dbManager.getProfileDataByStaffId(staffId);
</code></pre>

<p>im getting warning in this <code>dbManager.getProfileDataByStaffId(staffId);</code> part.</p>

<p>seems to be everything is fine. but not sure why im getting this error.</p>