Casted blocks to the appropriate types