Convert a value read form field in gui to a number value as used by prism


- datatype | float or int as string

-value | the value that is to be converted and returned

Return the correct type based on datatype paramtere. If invalid type just return the same value as came in