my bike is a used 400 yamaha maxim. sweet ride so far (beginner

the passanger side foot peg was 'snapped' off before i bought it. i went to the junk yard and grabbed the same kind of peg i need, but it seems as if the actual Bolt is weilded on the frame where would attach it.
(this makin any sense? hah sorry)
anyway, is it customary to have these weilded on? is drilling it out the best way? (then just getting a new generic bolt on the back)
thanks for your help. ill answer any questions if this is too vague