I am using nscala-time (wrapper for Joda Time) and slick for a project. I\'m trying to use this clause to write a line to the database:
Article.insert(0,\"ti
You misunderstand what asInstanceOf does: asInstanceOf doesn't convert anything. What it does is lie to the compiler, telling it to believe something instead of going with the knowledge it has.
So, you had a Long, and then you got a Long, but pretended it was a Timestamp, which obviously doesn't work.
I have a simple recommendation regarding asInstanceOf: never use it.