SSIS WebServiceTask simple type cast problem

I have a SQL task that fetches some data from sql server 2005 which is then fed to a foreach loop to iterate through the recordset and call a webmethod for each record. The method parameters are extracted from fields in the recordset and one of the parameter types happen to be a simple enumeration supplied by the webservice. I extract that field, status, value and hydrate a loal variable of type byte. My web service task fails when I execute the task, but it works fine when I leave this parameter as a static value instead. Any ideas?
[543 byte] By [trenches] at [2007-11-20 11:03:01]