[PECOFF][Writer] s/dyn_cast/cast/ where we don't expect null return value.