In 1854 he was elected Mayor of New York City .
In 1854 he was elected Mayor of New York City and took office in 1855 .