more general version of toObject: toSuper
fixed the instant method problem