Added parameter type check to the CharacterWrapper.