Prevent ClassCastExceptions when creating combo boxes by using more
ambiguous typing