Please put a safety check/assersion in here to protect against vm being null. If yu're certain that it's a WVM, you should cast it, not use an 'as'. If you're not, then you need to check otherwise you'll through a Null Ref exception