In that case you can make Regex
pattern and check if contains only number form [0-9] means int. If contains Alphabet from [A-Za-z0-9] and other special character then
String. If input contains [0-9] with
(DOT .) then float. you can set it according to your requirement.