Yeah I realise that it might not be the "correct" type but I tried to remain consistent with the rest of the code (https://github.com/dancannon/otto/blob/toValue_alias/value.go#L320).