How to raycast a curved surface (a cylinder or circle for example)

As the question says, I need to raycast out an angle which would strike the arc of a circle to determine the distance of the ray.