Java Playground - class to class type conversion: Online Interpreter, Compiler & Editor | Sololearn