Support for basic type conversion

TODO: add support for custom parsing