package models; public class Box { public void open() { // cast target for ((Box) obj).open() } }