replace 'as any' with 'as object'
upgrade to vs2010
cleanups
more cleanups
get rid of minor warnings by resharper