add getChildrenAs method.