Look at your code:
if (cmd.CommandType == CommandType.StoredProcedure)
retval = cmd.Parameters("@retval").Value;
Parameters is a collection, not a method:
if (cmd.CommandType == CommandType.StoredProcedure)
retval = cmd.Parameters["@retval"].Value;
[edit]
And it's "Convert" not "Conversions"
[/edit]