It is not that simple. There is no way to directly plug & play a MAF on the M42. Simply converting the voltage will not work well. Yes the car would run, but poorly. There are multiple reasons for this.
1) The response speed of the MAF is much much faster than the AFM, around 40x faster. The MAF output is so fast that it can show every individual air intake pulse as valves open when you are at 100% throttle. The ECU is not programmed to read the voltage fast enough to deal well with this (the stock AFM signal does not show any pulsing at all and is more like a DC output at all operating points). So you would need some fairly significant low-pass filtering, and due to the non-linear nature of the MAF transfer function, it cannot be done with analog means; you need to do it in software on the actual mass air flow value not the voltage.
2) The stock AFM has acoustical-mechanical resonances that are excited at large throttle openings. Basically it lies and over-reports air flow in certain RPM ranges, and the fuel maps in the ECU are tuned to correct this. A MAF will not have any of these resonance effects and will remain accurate in its output under all normal conditions. As such, you would need to remap the fueling to work properly with the MAF so that you do not run lean at 100% throttle in certain RPM ranges. This is more of an issue with the E30 M42 than the E36 M42 since the DISA manifold helps a little, but it is still an issue.
3) There is zero power to be gained by going to a MAF. The stock AFM is not restrictive. I don't know why people are so convinced that it is. It simply is not. I took many datalogs with the stock AFM and my own MAF conversion and the engine flows exactly zero more air with the MAF. Throttle response might be slightly better (I have no way to actually measure it so it is subjective).
So basically, converting to a MAF requires an embedded processing system to low-pass filter the signal after converting voltage to mass-flow values, and then convert that into an equivalent volume-proportional signal matching the stock AFM transfer function. Also you need to measure intake air temperature so that density is corrected for in the conversion from mass to volume flow rate. On top of that, you would either need to remap the fuel tables, or have the converter monitor RPM and throttle position to mimic the stock AFM's resonance effects (remapping fuel would be easier).
Hopefully that illustrates the point that it is not easy, nor is there any real point or benefit. I know because I did it, expecting gains in performance, but got nothing (other than learning a lot).