Remove unnecessary list casting and overhead