Nd4J.vstack in Scala

Hi All,
I am working on a Scala project and I want to use vstack to concatenate a list of INDArrays, but I get the following error message:

overloaded method value vstack with alternatives:
  (x$1: java.util.Collection[org.nd4j.linalg.api.ndarray.INDArray])org.nd4j.linalg.api.ndarray.INDArray <and>
  (x$1: org.nd4j.linalg.api.ndarray.INDArray*)org.nd4j.linalg.api.ndarray.INDArray
 cannot be applied to (List[org.nd4j.linalg.api.ndarray.INDArray])

Is it possible, that List in Scala cannot be recognized as a java.util.Collection?
Thank you for your help in advance!

I could manage to solve the problem via .asJavaCollection method from collection.JavaConverters. I realized, that Scala and Java does not compatible at that level I thought. This topic is not relevant anymore.

@zsvizi yeah you generally need implicits for that to work. Kotlin tends to be better at this than scala is.