Fix the compose generics

Ah interesting. This never worked for me, so you're just doing it via a cast and forcing it.