78798081828384
//Test if the class is an instance of the Variable class, which the specific class must extend if (obj != null && obj instanceof Variable) { return (Variable)obj; } return new Variable(); }