Allow hamcrest matchers to be used when functions are Typehinted