Need help with widget Target info issue

Basically i have a set up where i can see my main characters name and level above his health bar but when i target other actors it also shows my players name and level on their health bars as well I get im casting to my player character class but what else would i cast to to do it generically based on whats being targeted?