RadComponent[] (RadComponent component) { RadContainer container = (RadContainer)component; RadComponent[] result = new RadComponent[container.getComponentCount() + 1]; for (int i = 1; i < result.length; i++) { result[i] = container.getComponent(i - 1); } return result; }