[OS X Compilation Fix] Resolve ambiguous call with as_buffer

Simple fix to resolve compilation failure on OS X with Clang. OS X defines type_t as unsigned long instead of uint32_t or uint64_t.