Using C++ casts
Fixed .length() that should return a int and not a size_t
Removed value_type and size_type
Fixed an overload resolution bug generating chains of convertions.