Added automatic detection since UI sometimes passes integer or string due to dynamic nature on the input fields

Reviewer: Tiff Go

Issue: GCP-9763