How would I extrude an octagon onto a rectangle? (SOLIDWORKS)

Hello,

I wish to extrude an octagonal shape onto a smaller rectangle.

How would I achieve this.

Obviously the diagonal sides of the octagon converge to each vertex of the rectangle.

I think I have attached a picture.

Any thoughts?

SolidworksGeneral