Specific number form to CForm to String

I am using a custom function to transform my expressions to a specific NumberForm but when I subsequently do expression//CForm//ToString they don’t work. This is because any NumberForm merely change the out cell frontend. Any idea how to solve this?