Get around type erasure warning