parameters: (numpy_dtype, obj)
return_statement: return numpy_dtype(obj) if numpy_dtype is not object else str(obj)
docstring: Explicitly convert obj based on numpy type except for string type.
docstring_summary: Explicitly convert obj based on numpy type except for string type.
docstring_tokens: Explicitly convert obj based on numpy type except for string type .
function: def _convert_to_numpy_obj(numpy_dtype, obj):
    """Explicitly convert obj based on numpy type except for string type."""
    return numpy_dtype(obj) if numpy_dtype is not object else str(obj)
function_tokens: def _convert_to_numpy_obj ( numpy_dtype , obj ) : return numpy_dtype ( obj ) if numpy_dtype is not object else str ( obj )