Add typelib.toVoidCast for customizing void cast
Fix: add support for primitive with precision such as float64
add unit test
Merge pull request #6 from infosia/add_toVoidCast

Add typelib.toVoidCast for customizing void cast
Merge pull request #8 from infosia/is_primitive_fix

Fix: add support for primitive with precision such as float64