+ if (o instanceof JS) return ((JS)o).coerceToString(); // HACK for now, this will probably go away
+ throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "] to type String.");
+ }
+
+ public String coerceToString() {
+ throw new RuntimeException("can't coerce "+this+" [" + getClass().getName() + "] to type String.");