use correct type for checkcast at update of local var -- fixes BYTEMAN-252