I have this code:

Code:
	for (int i = 0; i < iBaseCharsLength; i++)
	{
		//int iInt = (int)csBaseChars[i];
		//iIndex[i] = iInt;
		//int iInt2 = (int)csEndChars[i];
		//iEnd[i] = iInt2;
	}
I commented out the lines because they cause an "ASSERTION FAILED" error,

that's probably because I'm treating csBaseChars as an array, but what I really want to do is get the ASCII value for each char in csBaseChars, and csEndChars, I thought of using csBaseChars.Mid(0, 1), but it won't let me cast it as an int.

Can anyone tell me how to do this?

Cheers
Icyculyr