getAsInteger

Some resources use this data type, they are color, resourceId and integerResource. You also can get any integer here.

open fun getAsInteger(key: String): Int