support for primitive types extraction (via boxing)