Added pydoc string to toContainValue method