Former school building set to be turned into apartment block