Java Code To Convert Object To Class