StudentIndividual is a class, last name is a string. You can only compare a string to a string. Maybe you should try comparing lastname to StudentIndividual.getLastName() or something similar. If you really must compare Studentindividual to a string you will need to create an overload of the operator== to handle this comparison.
Jim