Made data_cast() callable