Created be.ofType<'T> matcher