Ok ok, being able to cast like this in Java:
if (x instanceof String s)
And then use s as a string is so liberating, wow, how did I not know about this!
(The only reason I found out is I thought "they *must* have made this redundant cast less annoying by now!" and went looking, and, yep.)
17 days ago