Reference guard now using explicit pointer operator instead of implicit casts