diff --git a/rpc/args.go b/rpc/args.go
index 86ffd0c3ae7992eea8a4ae729b9a15b7fb80c722..992ea1eedefe35e6be1314bd93d5d8c603aee4c9 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -10,9 +10,9 @@ import (
 
 func blockAge(raw interface{}, number *int64) (err error) {
 	// Parse as integer
-	num, ok := raw.(int64)
+	num, ok := raw.(float64)
 	if ok {
-		*number = num
+		*number = int64(num)
 		return nil
 	}