Don't you get a compiler warning here because of type erasure?