Added a function to wrap the valueOf access to the Level enum.