Changes slice to built in type