Ich habe einen Code wie folgt:Anorm get Int als Ergebnis
def getUserId(email: String) = DB.withConnection { implicit con =>
SQL("select userId from signUp where email = {email}").
on('email -> email).as(SqlParser.str("access_token").singleOpt)
}
Es String
als Ergebnis gibt.
Wie kann ich das Ergebnis als Int
erhalten.