YAML parse restrict object types

I want to use YAML as a data language for a simple and secure RPC
mechanism. Is there any way to restrict the types of objects that
YAML::load() will produce. I want, for instance, to restrict it to
Arrays, Hashes, Strings and Fixnums.