make wrap() return desired type