Adding a convenient type constraint