You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stringslice.go
    path of file: ./repos/go-doudou/toolkit/cast
    
    the code of the file until where you have to start completion: package cast

import (
	"fmt"
	"github.com/shopspring/decimal"
)

func ToIntSliceE(s []string) ([]int, error) {
	if s == nil {
		return nil, fmt.Errorf("unable to cast string slice %#v 
    
func ToInt32SliceE(s []string) ([]int32, error) {
	if s == nil {
		return nil, fmt.Errorf("unable to cast string slice %#v to []int32", s)
	}
	var ret []int32
	for _, item := range s {
		i, err := ToInt32E(item)
		if err != nil {
			return nil, fmt.Errorf("unable to cast string slice %#v to []int32 because of error %s", s, err)
		}
		ret = append(ret, i)
	}
	return ret, nil
}