Added parameters casting, method types and docs