Added methods to ObjectExt.