>>>int RetVal = Convert.ToInt32(pRecordId.Value);
>>>
>>>>>>int RetVal = (int)pRecordId.Value; >>>>>>
>> var pRecordId = new SqlParameter("TheName", System.Data.SqlDbType.Char, 20); >> pRecordId.Value = "20"; >> >> int RetVal = (int)pRecordId.Value; >>>>
>> var pRecordId = new SqlParameter("hello", System.Data.SqlDbType.Int, 4); >> pRecordId.Value = 20; >> >> int RetVal = (int)pRecordId.Value; >> >> Console.WriteLine("{0}", RetVal); >> Console.ReadLine(); >>>