Nice way to using cast on TextView Question is short. Assuming that I don't need reference itself, would this cast

((TextView) findViewById(R.id.someTextView)).setText("lala");


be better (or at least not worse) than:

TextView tv=(TextView) findViewById(R.id.someTextView);
tv.setText("lala");
The latter would be my preferred method. It enhances readability, and allows you to use that object more than once without casting it every time (more efficient). 

Though, if you are only casting to use one function inside the object, then there's no point in doing the latter (you would just be creating needless variables to only set one value in it once).