from __future__ import absolute_import

import schematec.exc as exc


def numeric(value):
    if isinstance(value, (int, long)):
        return int(value)

    if isinstance(value, basestring):
        try:
            return int(value)
        except ValueError:
            raise exc.ConvertationError(value)

    if value is None:
        raise exc.ConvertationError(value)

    raise exc.ConvertationError(value)


def string(value):
    pass


def boolean(value):
    pass


def array(value):
    pass


def dictionary(value):
    pass

@@ -79,24 +79,83 @@
 ric(value):%0A
+    if isinstance(value, bool):%0A        return int(value)%0A%0A
     if isins

add specific bool converter