Modified asObject, added ctorArgs constructor arguments