Explicitly cast value returned from Cocoa.NSObjectFromVariant.

Kem's modification caused a "There are several items with the same name
and it is not clear which one the call refers to" compiler error for me.