Cast failing when it should not

You are getting the wrong slot and you don’t need to cast. Just tested this out and it works fine. As for the “Is Valid”, did you add your widget to the viewport?