Custom errors for type converters