Add type-checking, type-casting functions to package exports