Make level conversions safer