How can I cast an Object to an int in java?
For Example Object variable; hastaId
hastaId
Object hastaId = session.getAttribute("hastaID");
For Example Cast an Object to an int,hastaID
hastaID
int hastaID=Integer.parseInt(String.valueOf(hastaId));