def graph_device(self) -> GraphDeviceRequestBuilder:
        """
        Casts the previous resource to device.
        """
        from .graph_device.graph_device_request_builder import GraphDeviceRequestBuilder

        return GraphDeviceRequestBuilder(self.request_adapter, self.path_parameters)

        Casts the previous resource to device.
        
msgraph/generated/directory/administrative_units/item/members/item/directory_object_item_request_builder.py