Promote casts inside lets for peephole matching