Renamed clazz to asn1Class and added comments for explicit castings