VS is deriving the type of the array from the type of the variable used in its creation (in this case userID), there are 2 ways around this, either:
object[] parameters = new[] { (object)UserID };
or
object[] parameters = new object[] { UserID };
Personally, i prefer the 2nd option.