bugfix String::cast()

because of String::cast(int) return 1 every times...