I have an Object testCat having value List(123, 456, 789)
and I would like to convert this Object to List[Object]
in scala. When I use asInstanceOf
, I got the error:
DataSource.scala:310: T0 does not take parameters
[ERROR] [Console] [error]
var testCat = eachMultiCat.asInstanceOf(List[Object])
[ERROR] [Console] [error]
Can anybody help me with this issue? Thank you very much.