}
if (lhs instanceof JCastOperation) {
// Assignment-to-cast-operation, e.g.
// (Foo) x = foo -> x = foo
JCastOperation cast = (JCastOperation) lhs;
JBinaryOperation newAsg = new JBinaryOperation(program,
x.getSourceInfo(), x.getType(), JBinaryOperator.ASG, cast.getExpr(),
x.getRhs());
ctx.replaceMe(newAsg);
}
}