New UDF to allow reading various types from varchars, but unlike the current cast implementation in the case of the empty string we will just return null.