Hi Mike, Maybe a simple way around this is just to use: switch("$key") It makes it pretty clear that you are only dealing with strings, and you won't have to deal with casting issues. Regards, John Campbell