All right, this isn't really for me, but for a friend in my AP Computer science class... we're sort of off topic right now in the class since we get to do what we want as long as we keep up.
He's working on a class, and he overloaded the  operator. He wanted it so that if you had
object that it would return an apstring object, and any other number would return a float.
His reason for doing this is that he is making his class like a struct and wants to use a for loop to get all the data.
He found varients, but those are MFC and we're still using console apps.
I suggested he had a different overload:  (float) so that 1.0 would work, but he said he wanted the for loop, and if you did that then you couldn't send it as a float.
Is there any way to do this, or if necessary, to make it so that it returns an apstring (converts the floats to apstring, we know how to do that) and then the overload (or another function) returns the data?