https://pulumi.com logo
#general
Title
# general
h

helpful-secretary-93852

07/13/2023, 12:12 PM
Good morning! 🤟 I'm having issues casting a value from pulumi.IDOutput to pulumi.IntInput ... Does anyone know how to do it?
a

ancient-policeman-24615

07/13/2023, 12:41 PM
If your
id
is a parsable as an int, you can use
myID.ApplyT(strconv.Atoi).(pulumi.IntOutput)
.
pulumi.IntOutput
satisfies the interface
pulumi.IntInput
.
h

helpful-secretary-93852

07/13/2023, 5:26 PM
thank you!
i'm stuck on another cast 😞 i have to mock a pulumi.ArrayInput type from a normal golang array of strings. does anyone know how to do?