Enforced type casting in dynamo layer