When working with variables/parameters that can only take a finite number of values, I try to always use Java\'s enum, as in
enum
public enum BonusT
I'm not sure if it's the same in Java, but enum types in C are automatically mapped to integers as well so you can use either the type or integer to access it. Have you tried simply accessing it with integer yet?