The local building department would be able to tell you how the property is zoned. If a landlord is renting a unit that is not legal, then the landlord could be cited by the city. The city does not evict people (except in very exceptional circumstances), but the landlord could file papers with the court to have you evicted because it is an illegal tenancy and (presumably) he does not want to keep getting cited by the city. He will win that argument, but he cannot file the court papers without giving you 3 months notice AND he would have to give you "relocation assistance" equal to 6x the monthly rent.
This is just some very general information. If you need specific advice about your case, you should consult with an attorney.
Best of luck.
This posting is just general legal INFORMATION and not legal ADVICE. Only your attorney can provide legal advice. If you would like actual advice about your particular case, please contact me for a consultation.
If it is illegal, you will be required to move. If you call the Building Department, they will be able to confirm whether your unit is legal.
Robert Ricci, Jr., Esq.
1743 St. Georges Avenue
Rahway, NJ 07065
Legal disclaimer: In accordance with the Avvo community guidelines, this communication does not constitute "legal advice", nor does it form an attorney-client relationship.