I split the “generic procedures feature” into a separate thread, so that we do not hijack this one. @everythingfunctional had a great reply for the classof and typeof question above which is now the first post here:
classof
typeof