Add interface for dtype