Added methods for datatypes conversion in Instances class