Cast input as string.