* Replacing (int) casts with Convert.ToInt to avoid VB conversion bug.