Basic type checking in the C++ portion of the max_min.