I've got a task as a part of my homework and I can not get over it.

The code of the transformer interface is the following:
public interface Transformer<FROM, TO> {
TO transform(FROM value);
}
The code of the PersonSubscriberTransformer class looks like this so far:
public class PersonSubscriberTransformer<FROM, TO> implements Transformer {
private Predicate<Person> predicate;
public PersonSubscriberTransformer(Predicate<Person> predicate) {
this.predicate = predicate;
}
@Override
public Object transform(Object value) {
return null;
}
}
The paramether of the transform method should be List<Person> and it should return a List<Subscriber>. As I'm changing the paramether I got an error saying I should pull the method to the Transformer interface.
What would be the solution to implement this method in the correct way?