Add conversion to int and float types

And with that the whole API is exposed.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>