Block type casting and accepting block index