You will probably need to consult with the city's planning and zoning board to see if this would be a possibility. If it's not zoned residential, then you probably wouldn't be able to live there. What is the current zoning? Is it in an area that the zoning could be changed? However, your best bet is to see what zoning says. They will be able to answer all of your questions.
Good luck to you,