A historic, Grade II listed Victorian building in Sheffield city centre will be converted into almost 20 new apartments.