Please post the full text of the error message showing the statement where the error happens.

The returned List is not defined to be a list of Customers. Look at how customerList is defined.