Work around generics not being able to accept values