asNumber doesn'nt exist use .asInteger.