/** El problema de guardar Object: el error aparece recién al sacar, en ejecución. */
public class RawProblem {
    public static void main(String[] args) {
        ObjectBox box = new ObjectBox();
        box.put("Lima");                       // compila: un String es un Object
        String city = (String) box.get();      // hay que hacer casting al sacar
        System.out.println("ciudad: " + city);

        box.put(42);                           // también compila: nadie lo impide
        try {
            String other = (String) box.get(); // el error aparece aquí, en ejecución
            System.out.println("otra: " + other);
        } catch (ClassCastException e) {
            System.out.println("ClassCastException: " + e.getMessage());
        }
    }
}
