Code from VB 2003 works different in 2005 Beta 2

In VS 2003, the last line of the code below returned an integer. The same code in 2005 Beta 2 returns an object. The only way to return an integer is to add a second ".value" at the end of the first one. Is this a bug in Beta 2? Thanks.
Dim cmd As SqlCommand = New SqlCommand
cmd.CommandText = "dbo.[usp_employee_SelectAll]"
cmd.CommandType = CommandType.StoredProcedure
cmd.Connection = Connection
cmd.Parameters.Add(New SqlParameter("@ErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, True, 10, 0, "", DataRowVersion.Proposed, SQLErrorCode))
msgbox(cmd.Parameters.Item("@ErrorCode").Value)
[623 byte] By [RomanBenko] at [2007-12-16]
# 1
Hello Roman
I checked VS2003 and we were retuning Object . SqlParameter.Value method returns of type Object .

Thanks
Sunder
Vb.Net test

Sunderth_MS at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...