Extruding an arc

Looking to make a curved cylinder or pegs extruded out of an object to connect to a pegboard. How do I make that sweep?