cast scala sequence to List instead of ArrayList