function to validate parameters against a tuple type argument