// used to assign a value to an internal variable
 private void assignInternal(InternalProperty var, Value v)
     throws NoSuchVariableException, NumberFormatException, PlayerDebugException {
   // otherwise set it
   if (v.getType() != VariableType.NUMBER) throw new NumberFormatException(v.getValueAsString());
   long l = Long.parseLong(v.getValueAsString());
   m_cache.put(var.getName(), (int) l);
 }