You probably try to get a reference of a widget. If that is the case, right after creating the widget, promote it to a variable so you can get a reference from this widget, you don’t need to cast.
You probably try to get a reference of a widget. If that is the case, right after creating the widget, promote it to a variable so you can get a reference from this widget, you don’t need to cast.