@staticmethod
def call_mod_ptr_or_value(annotation, value):
    """
        Last step in a call_mod_ for classes which wrap swig types and expose them
        via ``value`` and ``ptr`` properties.
        """
    if annotation[::-1].startswith('*'):
        return value.ptr
    return value.value
