added toStringArray function
added toInt cast function