edited casting to floats, long and int for Metadata