First of all, you have to include <cstring> or <string.h> if you want to use strlen().
In the second loop you compare
i <= myNumberChar[y]
When char is converted to int, the returned value equals the position of the char in the ASCII-table. So 1 <= '2' is not 1 <= 2, but 1 <= 50. Safe char->int conversion (assuming char is supposed to represent a number) is done with 'c' - '0'.
And your while loop is unnecessary, and false. Not sure what you tried to accomplish with that.
Finally, you should probably consider to use an int array instead of a char array.