Play Framework: incompatible types: java.util.List<models.Vehicle> cannot be converted to java.lang.String
<p>I'm trying a simple view in Play framework 2.5 but I keep getting this compile-time error <code>java.util.List&lt;models.Vehicle&gt; cannot be converted to java.lang.String</code></p>

<p>I already tried <a href="https://stackoverflow.com/a/21436389/4722232">this answer</a>    </p>

<pre><code>scala.collection.immutable.List&lt;String&gt; ls = JavaConverters.asScalaBufferConverter(scripts).asScala().toList(); 
</code></pre>

<p>but there is no <code>.toList()</code> function, it is not recognised.
This is my code:</p>

<p>Aplication.java</p>

<pre><code>package controllers;

import models.Vehicle;
import play.mvc.Controller;
import play.mvc.Result;
import scala.collection.JavaConverters;

public class Application extends Controller {

    public Result index() {
    //        this does not work
    //        scala.collection.immutable.List&lt;Vehicle&gt; ls = JavaConverters.asScalaBufferConverter(Vehicle.finder.all()).asScala().toList();
              return ok(views.html.index.render(Vehicle.finder.all())); //here is the error
    }

}
</code></pre>

<p>index.scala.html</p>

<pre><code>@(vehicles: java.util.List[Vehicle])

@main("Welcome to Play") {

    &lt;header&gt;
        &lt;hgroup&gt;
            &lt;h1&gt;Dashboard&lt;/h1&gt;
            &lt;h2&gt;Vehicles&lt;/h2&gt;
        &lt;/hgroup&gt;
    &lt;/header&gt;

    &lt;ul&gt;
    @for(vehicle &lt;- vehicles) {
        &lt;li&gt;@vehicle.getModel&lt;/li&gt;
    }
    &lt;/ul&gt;
}
</code></pre>

<p>relevant code in Vehicle.java</p>

<pre><code>package models;

import javax.persistence.*;
import java.util.List;
@Entity
public class Vehicle extends BaseEntity {

    public static Finder&lt;Long, Vehicle&gt; finder = new Finder&lt;Long, Vehicle&gt;(Vehicle.class){};
    @Column(nullable = false)
    String model;

    public String getModel() {
        return model;
    }

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

<p>Any help would be highly appreciated.</p>