Implement object-style custom assertion