package kha; class StringExtensions { public static function toCharArray(s: String): Array { var results = new Array(); for (i in 0...s.length) { results.push(s.charCodeAt(i)); } return results; } }