Carlsbad has approved the conversion of a 98-room extended-stay hotel into 98 studio and one-bedroom apartments, a change seen as a relatively quick and easy way to add much-needed affordable housing.