replaceCallWithCast