Add getChildByName method for get a node that can be cast to Type T