No need for cast(); use existing Object::get_from().
Remove unnecessary imports.
Remove unnecessary import.
Work around format checks getting confused.
Mark expensive test as such.
Fix header.
Don't export header-only functions.
Add function name exception.