When you do a DBCursor.next() you can get hold of the DBObject instance. Something like:
you then have to correspondingly cast to the required type. I am not sure if you can cast the return of cursor.next() directly into BasicDBObject and then make use of getInt, getBoolean, getString method provided by BasicDBObject. Something like:
If you are familiar with ORM frameworks then you can try out
Morphia which helps in making these operations a bit simpler.
As Chris pointed out, the MongoDB Java documentation should help you a lot.