Check if level is already int before trying to obtain it from constants