In fact as you can read in the docs:
http://developer.android.com/reference/android/preference/ListPreference.html#getValue()
The method to get a ListPreference
value is:
public String getValue ()
So you get a String. It's not a big deal, but could be prettier to admit integers.