I think it would be easier if we can do like this (as in Pascal language) with "AS" keyword (for eg. in a Click event of a button):
If I'm not wrong, now I should do like this:
B4X:
Dim strTag As String = (Sender As Button).Tag
If I'm not wrong, now I should do like this:
B4X:
Dim btn As Button = Sender
Dim strTag As String = btn.Tag