Allow definition of own types for `expects()`