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: actor_type.go
    path of file: ./repos/submarine/server/battle/lib/typhenapi/type/submarine/battle
    
    the code of the file until where you have to start completion: // This file was generated by typhen-api

package battle

import (
	"errors"
)

type ActorType int

func (i Actor
    
func (i ActorType) Coerce() error {
	switch i {
	case ActorType_Submarine:
		return nil
	case ActorType_Torpedo:
		return nil
	case ActorType_Decoy:
		return nil
	case ActorType_Watcher:
		return nil
	}
	return errors.New("No ActorType")
}