I have this Scala method with below error. Cannot convert into a Scala list.
def findAllQuestion():List[Question]={ questionDao.getAllQuestions() }
def findAllStudentTest(): List[StudentTest] = { studentTestDao.getAllStudentTests().asScala.toList }