RF: Use type to cast child class