Maping cube to sphere. Help.

I am a complete noob at scripting and have been look at taking a cube and turning it into a sphere for my planet generation. I first need to map my cube to a sphere but I have not been able to do it. All I want to do is take the cube’s point normalize it and then times it by the radius "something" = "something".normalized * radius I just don’t know how to do this in code. I have been using c# but I don’t really care what I get a answer in. Any help would be appreciated.

Yet another question like that.