I am using a java object that returns a java interface and am a newbie with scala I am trying to do the following:
val model = dao.getAccount(id)
model is an interface but I should be able to cast it as an object
but I know that in java I can cast this object like this:
model = (AccountModel) accountDAO.getAccount(id)
How do I do this in a scala app?
I tried this: retVal.asInstanceOf(AccountModel) but it doesn't seem to like that