Creates a new list with all arguments that have type T.
T
List<T> toList<T>() { return List<T>.from(arguments.whereType<T>()); }