Both Control and MenuItem classes inherits System.ComponentModel.Component
class, so your method could be like:
using System.ComponentModel;
public void MyMethod(Component component)
{
if(component is Control)
{
Control c = component as Control;
// use c
}
else if(component is MenuItem)
{
MenuItem m = component as MenuItem;
// use m
}
}