Get a function's parameter type?

How can I get the type of parameter for my editor script? So let’s say I have the following function in a script I am extending the inspector for:

void DoStuff(int x) {
    //Do stuff
}

How can I get int, so that I can pass it into EditorGUILayout.ObjectField?

GetMethod(method).GetParameters().ElementAt(0).ParameterType