Recalling nearest beacon for conditional statement

func proximityContentManager(_ proximityContentManager: ProximityContentManager, didUpdateContent content: AnyObject?)

How would I change a view controller according to the nearest beacon found
I’m trying to call a beacon according to the minor value. How would I change the “AnyObject” for the specific beacon. I’ve tried using BeaconID (minor:xxxx).

I would greatly appreciate any pointers please.