Convert assertions to RuntimeExceptions.