Try to find the type of the parameter automatically if it isn't defined manually