Convert RealmResults<E> to List<E> with copyFromRealm
<p>How can I convert <code>RealmResults&lt;E&gt;</code> to <code>List&lt;E&gt;</code>?  </p>

<p>I tried with method <code>copyFromRealm</code>:</p>

<pre><code>RealmResults&lt;EventRealm&gt; result = realm.where(EventRealm.class).findAll();

EventRealm eventRealm = result.get(0);
int id = eventRealm.getId(); // return id 2564
String title = eventRealm.getTitle(); // return "My event"

List&lt;EventRealm&gt; copied = realm.copyFromRealm(result);

EventRealm eventRealm1 = copied.get(0);
int id1 = eventRealm1.getId(); // return id 0
String title1 = eventRealm1.getTitle(); // return "My event"
</code></pre>

<p>But not quite understand why in copy <code>getTitle()</code> give correct result, but <code>getId()</code> incorrect.</p>

<p>Model</p>

<pre><code>public class EventRealm extends RealmObject {

        @PrimaryKey
        private int id;
        private String title;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = this.id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }
  }
</code></pre>