Note that zoning a beach lot into an apartment lot will severely corrupt the ocean and lot terrain and is strongly not recommended. To use this cheat, enter the lot that you would like to rezone, and then enter the cheat, choosing one of these zoning options. Before rezoning a lot using this cheat, make sure there are no Sims currently living in the lot.
Note that some cheats requires that you enter the Postprocessing cheat further down. To get the cheats to work type CTRL+SHIFT+C then type them in.