Widget.getParentAs() method added