Hello Hadi,
it’s a perhaps bit counterintuitive, but you get the style, and then you apply a setText() method to the style. You can’t take a text (which would be converted a string) and add a style to it.
so in your case:
s = thisComp.layer("text A").text.sourceText.style;
s.setText( effect("Slider Control")("Slider").value );