Level to int